Skip to content

Commit

Permalink
remove mergeCollection test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispader committed Mar 25, 2024
1 parent 2b402c1 commit 079b9f8
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions tests/unit/onyxTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -1039,54 +1039,6 @@ describe('Onyx', () => {
});
});
});

it('should omit nested null values', () => {
let result;

const routineRoute = `${ONYX_KEYS.COLLECTION.ROUTES}routine`;
const holidayRoute = `${ONYX_KEYS.COLLECTION.ROUTES}holiday`;

connectionID = Onyx.connect({
key: ONYX_KEYS.COLLECTION.ROUTES,
initWithStoredValues: false,
callback: (value) => (result = value),
waitForCollectionCallback: true,
});

return Onyx.mergeCollection(ONYX_KEYS.COLLECTION.ROUTES, {
[routineRoute]: {
waypoints: {
1: 'Home',
2: 'Work',
3: 'Gym',
},
},
[holidayRoute]: {
waypoints: {
1: 'Home',
2: 'Beach',
3: null,
},
},
}).then(() => {
expect(result).toEqual({
[routineRoute]: {
waypoints: {
1: 'Home',
2: 'Work',
3: 'Gym',
},
},
[holidayRoute]: {
waypoints: {
1: 'Home',
2: 'Beach',
},
},
});
});
});

it('should apply updates in order with Onyx.update', () => {
let testKeyValue;

Expand Down

0 comments on commit 079b9f8

Please sign in to comment.