Skip to content

Commit 38a5f13

Browse files
committed
Remove useless test
1 parent bd8d67e commit 38a5f13

1 file changed

Lines changed: 1 addition & 52 deletions

File tree

tests/unit/onyxUtilsTest.ts

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ describe('OnyxUtils', () => {
200200
});
201201

202202
describe('mergeAndMarkChanges', () => {
203-
it('should apply the replacement markers if the we have properties with objects being removed and added back during the changes', () => {
203+
it('should apply the replacement markers if we have properties with objects being removed and added back during the changes', () => {
204204
const {result, replaceNullPatches} = OnyxUtils.mergeAndMarkChanges(testMergeChanges);
205205

206206
expect(result).toEqual({
@@ -223,56 +223,5 @@ describe('OnyxUtils', () => {
223223
[['b', 'g'], {k: 'k'}],
224224
]);
225225
});
226-
227-
it('should 2', () => {
228-
const {result, replaceNullPatches} = OnyxUtils.mergeAndMarkChanges([
229-
{
230-
// Removing the "originalMessage" object in this update.
231-
// Any subsequent changes to this object should completely replace the existing object in store.
232-
originalMessage: null,
233-
},
234-
{
235-
// This change should completely replace "originalMessage" existing object in store.
236-
originalMessage: {
237-
errorMessage: 'newErrorMessage',
238-
},
239-
receipt: {
240-
// Removing the "nestedObject" object in this update.
241-
// Any subsequent changes to this object should completely replace the existing object in store.
242-
nestedObject: null,
243-
},
244-
},
245-
{
246-
receipt: {
247-
receiptID: null,
248-
filename: 'newFilename',
249-
// This change should completely replace "receipt" existing object in store.
250-
nestedObject: {
251-
nestedKey2: 'newNestedKey2',
252-
},
253-
},
254-
},
255-
]);
256-
257-
expect(result).toEqual({
258-
originalMessage: {
259-
errorMessage: 'newErrorMessage',
260-
[utils.ONYX_INTERNALS__REPLACE_OBJECT_MARK]: true,
261-
},
262-
receipt: {
263-
receiptID: null,
264-
filename: 'newFilename',
265-
nestedObject: {
266-
nestedKey2: 'newNestedKey2',
267-
[utils.ONYX_INTERNALS__REPLACE_OBJECT_MARK]: true,
268-
},
269-
},
270-
});
271-
272-
expect(replaceNullPatches).toEqual([
273-
[['originalMessage'], {errorMessage: 'newErrorMessage'}],
274-
[['receipt', 'nestedObject'], {nestedKey2: 'newNestedKey2'}],
275-
]);
276-
});
277226
});
278227
});

0 commit comments

Comments
 (0)