Skip to content

Commit e96581c

Browse files
committed
add ts-expect-error comment
1 parent 9349c12 commit e96581c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/sync.service.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ describe("SyncService", () => {
101101
// This arranges the last hash to be differet from the ArrayBuffer after it is converted to b64
102102
stateService.getLastSyncHash.mockResolvedValue("unique hash");
103103

104-
// This is a workaround to make the batchsize smaller to trigger the batching logic since its a const.
104+
// @ts-expect-error This is a workaround to make the batchsize smaller to trigger the batching logic since its a const.
105105
constants.batchSize = 4;
106106

107107
const mockRequests = new Array(6).fill({
@@ -125,6 +125,7 @@ describe("SyncService", () => {
125125
});
126126

127127
it("does not post for the same hash", async () => {
128+
// @ts-expect-error this sets the batch size back to its expexted value for this test.
128129
constants.batchSize = 2000;
129130
stateService.getSync.mockResolvedValue(getSyncConfiguration({ groups: true, users: true }));
130131
cryptoFunctionService.hash.mockResolvedValue(new ArrayBuffer(1));

0 commit comments

Comments
 (0)