Skip to content

Commit

Permalink
Update a few tests with accountID-keyed details
Browse files Browse the repository at this point in the history
  • Loading branch information
Beamanator committed Jun 6, 2023
1 parent 7f0a66d commit 54ecbcb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/unit/SidebarOrderTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jest.mock('../../src/libs/Permissions');
jest.mock('../../src/components/Icon/Expensicons');

const ONYXKEYS = {
PERSONAL_DETAILS: 'personalDetails',
PERSONAL_DETAILS_LIST: 'personalDetailsList',
NVP_PRIORITY_MODE: 'nvp_priorityMode',
SESSION: 'session',
BETAS: 'betas',
Expand Down
27 changes: 18 additions & 9 deletions tests/utils/LHNTestUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,55 +26,64 @@ jest.mock('@react-navigation/native', () => {
});

const fakePersonalDetails = {
'[email protected]': {
1: {
accountID: 1,
login: '[email protected]',
displayName: 'Email One',
avatar: 'none',
firstName: 'One',
},
'[email protected]': {
2: {
accountID: 2,
login: '[email protected]',
displayName: 'Email Two',
avatar: 'none',
firstName: 'Two',
},
'[email protected]': {
3: {
accountID: 3,
login: '[email protected]',
displayName: 'Email Three',
avatar: 'none',
firstName: 'Three',
},
'[email protected]': {
4: {
accountID: 4,
login: '[email protected]',
displayName: 'Email Four',
avatar: 'none',
firstName: 'Four',
},
'[email protected]': {
5: {
accountID: 5,
login: '[email protected]',
displayName: 'Email Five',
avatar: 'none',
firstName: 'Five',
},
'[email protected]': {
6: {
accountID: 6,
login: '[email protected]',
displayName: 'Email Six',
avatar: 'none',
firstName: 'Six',
},
'[email protected]': {
7: {
accountID: 7,
login: '[email protected]',
displayName: 'Email Seven',
avatar: 'none',
firstName: 'Seven',
},
'[email protected]': {
8: {
accountID: 8,
login: '[email protected]',
displayName: 'Email Eight',
avatar: 'none',
firstName: 'Eight',
},
'[email protected]': {
9: {
accountID: 9,
login: '[email protected]',
displayName: 'Email Nine',
avatar: 'none',
Expand Down

0 comments on commit 54ecbcb

Please sign in to comment.