1 parent bc697b3 commit d553ac6Copy full SHA for d553ac6
1 file changed
tests/unit/APITest.ts
@@ -436,7 +436,7 @@ describe('APITests', () => {
436
});
437
438
Onyx.set(ONYXKEYS.NETWORK, {isOffline: true});
439
- expect(NetworkStore.isOffline()).toBe(false);
+ expect(NetworkStore.isOffline()).toBe(true);
440
expect(NetworkStore.isAuthenticating()).toBe(false);
441
return waitForBatchedUpdates();
442
})
@@ -551,7 +551,7 @@ describe('APITests', () => {
551
API.write('MockCommandThree' as WriteCommand, {});
552
553
// THEN the retryable requests should immediately be added to the persisted requests
554
- expect(PersistedRequests.getAll().length).toBe(2);
+ expect(PersistedRequests.getLength()).toBe(2);
555
556
// WHEN we wait for the queue to run and finish processing
557
0 commit comments