Skip to content

Commit 0f1d2d5

Browse files
authored
Merge pull request #4312 from Expensify/marcaaron-defaultKeyStates
Update Onyx version to improve handling of defaultKeyStates
2 parents 6595c6b + 94b004b commit 0f1d2d5

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

package-lock.json

Lines changed: 11 additions & 16 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
@@ -82,7 +82,7 @@
8282
"react-native-image-picker": "^4.0.3",
8383
"react-native-keyboard-spacer": "^0.4.1",
8484
"react-native-modal": "^11.10.0",
85-
"react-native-onyx": "git+https://github.com/Expensify/react-native-onyx.git#84a27cdd03a39baa167058efc3379d9a477849dd",
85+
"react-native-onyx": "git+https://github.com/Expensify/react-native-onyx.git#d73900b7cb7bf82bed77cb6b6baabf8fe2eb3a0e",
8686
"react-native-pdf": "^6.2.2",
8787
"react-native-permissions": "^3.0.1",
8888
"react-native-picker-select": "8.0.4",

tests/unit/NetworkTest.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jest.mock('../../src/libs/Notification/PushNotification', () => ({
1515

1616
jest.useFakeTimers();
1717

18+
Onyx.init({
19+
keys: ONYXKEYS,
20+
registerStorageEventListener: () => {},
21+
});
22+
23+
beforeEach(() => Onyx.clear().then(waitForPromisesToResolve));
24+
1825
test('failing to reauthenticate while offline should not log out user', () => {
1926
// Given a test user login and account ID
2027
const TEST_USER_LOGIN = '[email protected]';

0 commit comments

Comments
 (0)