File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ describe("SyncService", () => {
101
101
// This arranges the last hash to be differet from the ArrayBuffer after it is converted to b64
102
102
stateService . getLastSyncHash . mockResolvedValue ( "unique hash" ) ;
103
103
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.
105
105
constants . batchSize = 4 ;
106
106
107
107
const mockRequests = new Array ( 6 ) . fill ( {
@@ -125,6 +125,7 @@ describe("SyncService", () => {
125
125
} ) ;
126
126
127
127
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.
128
129
constants . batchSize = 2000 ;
129
130
stateService . getSync . mockResolvedValue ( getSyncConfiguration ( { groups : true , users : true } ) ) ;
130
131
cryptoFunctionService . hash . mockResolvedValue ( new ArrayBuffer ( 1 ) ) ;
You can’t perform that action at this time.
0 commit comments