From 079b9f8706366a325a6776af3337b8828f6efbbf Mon Sep 17 00:00:00 2001 From: Christoph Pader Date: Mon, 25 Mar 2024 16:21:37 +0100 Subject: [PATCH] remove mergeCollection test --- tests/unit/onyxTest.js | 48 ------------------------------------------ 1 file changed, 48 deletions(-) diff --git a/tests/unit/onyxTest.js b/tests/unit/onyxTest.js index e50fc620..a75fd6bb 100644 --- a/tests/unit/onyxTest.js +++ b/tests/unit/onyxTest.js @@ -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;