Skip to content

Commit

Permalink
CDC #292 - Updating Object.spec test for new "removeEmpty" default value
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed Oct 7, 2024
1 parent d8ef3cc commit 36a7719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shared/test/utils/Object.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('isEqual', () => {
name: 'Test 123'
};

expect(ObjectUtils.isEqual(a, b)).toBeTruthy();
expect(ObjectUtils.isEqual(a, b, { removeEmptyValues: true })).toBeTruthy();
});

test('should be unequal for objects with different keys with null values with removeEmptyValues "false"', () => {
Expand All @@ -63,6 +63,6 @@ describe('isEqual', () => {
name: 'Test 123'
};

expect(ObjectUtils.isEqual(a, b, { removeEmptyValues: false })).toBeFalsy();
expect(ObjectUtils.isEqual(a, b)).toBeFalsy();
});
});

0 comments on commit 36a7719

Please sign in to comment.