Skip to content

Commit d553ac6

Browse files
committed
Update APITest test
1 parent bc697b3 commit d553ac6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/unit/APITest.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ describe('APITests', () => {
436436
});
437437

438438
Onyx.set(ONYXKEYS.NETWORK, {isOffline: true});
439-
expect(NetworkStore.isOffline()).toBe(false);
439+
expect(NetworkStore.isOffline()).toBe(true);
440440
expect(NetworkStore.isAuthenticating()).toBe(false);
441441
return waitForBatchedUpdates();
442442
})
@@ -551,7 +551,7 @@ describe('APITests', () => {
551551
API.write('MockCommandThree' as WriteCommand, {});
552552

553553
// THEN the retryable requests should immediately be added to the persisted requests
554-
expect(PersistedRequests.getAll().length).toBe(2);
554+
expect(PersistedRequests.getLength()).toBe(2);
555555

556556
// WHEN we wait for the queue to run and finish processing
557557
return waitForBatchedUpdates();

0 commit comments

Comments
 (0)