Skip to content

Commit 4c69ab7

Browse files
committed
Update SessionTest.ts
1 parent 57e17d7 commit 4c69ab7

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
"react-native-localize": "^3.5.4",
191191
"react-native-nitro-modules": "0.29.4",
192192
"react-native-nitro-sqlite": "9.2.0",
193-
"react-native-onyx": "3.0.32",
193+
"react-native-onyx": "git+https://github.com/Expensify/react-native-onyx.git#8cffc45ac25d42b5639e9bcfa42d6a2be82cee7c",
194194
"react-native-pager-view": "7.0.2",
195195
"react-native-pdf": "7.0.2",
196196
"react-native-performance": "^6.0.0",

tests/actions/SessionTest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ describe('Session', () => {
183183

184184
await Onyx.set(ONYXKEYS.NETWORK, {isOffline: false});
185185

186+
await waitForBatchedUpdates();
187+
186188
expect(getAllPersistedRequests().length).toBe(0);
187189
});
188190

@@ -220,6 +222,8 @@ describe('Session', () => {
220222

221223
await Onyx.set(ONYXKEYS.NETWORK, {isOffline: false});
222224

225+
await waitForBatchedUpdates();
226+
223227
expect(getAllPersistedRequests().length).toBe(0);
224228
});
225229

0 commit comments

Comments
 (0)