Skip to content

Commit

Permalink
Merge pull request #4312 from Expensify/marcaaron-defaultKeyStates
Browse files Browse the repository at this point in the history
Update Onyx version to improve handling of defaultKeyStates
  • Loading branch information
Jag96 authored Jul 30, 2021
2 parents 6595c6b + 94b004b commit 0f1d2d5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
27 changes: 11 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"react-native-image-picker": "^4.0.3",
"react-native-keyboard-spacer": "^0.4.1",
"react-native-modal": "^11.10.0",
"react-native-onyx": "git+https://github.com/Expensify/react-native-onyx.git#84a27cdd03a39baa167058efc3379d9a477849dd",
"react-native-onyx": "git+https://github.com/Expensify/react-native-onyx.git#d73900b7cb7bf82bed77cb6b6baabf8fe2eb3a0e",
"react-native-pdf": "^6.2.2",
"react-native-permissions": "^3.0.1",
"react-native-picker-select": "8.0.4",
Expand Down
7 changes: 7 additions & 0 deletions tests/unit/NetworkTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ jest.mock('../../src/libs/Notification/PushNotification', () => ({

jest.useFakeTimers();

Onyx.init({
keys: ONYXKEYS,
registerStorageEventListener: () => {},
});

beforeEach(() => Onyx.clear().then(waitForPromisesToResolve));

test('failing to reauthenticate while offline should not log out user', () => {
// Given a test user login and account ID
const TEST_USER_LOGIN = '[email protected]';
Expand Down

0 comments on commit 0f1d2d5

Please sign in to comment.