Skip to content

Commit 1faa02f

Browse files
committed
Add date with milliseconds test case
1 parent 8a109e7 commit 1faa02f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/diff/index.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ describe('.diff', () => {
1616
['array', [1]],
1717
['function', () => ({})],
1818
['date', new Date()],
19+
['date with milliseconds', new Date('2017-01-01T00:00:00.637Z')],
1920
]).test('returns empty object when given values of type %s are equal', (type, value) => {
2021
expect(diff(value, value)).toEqual({});
2122
});

src/updated/index.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ describe('.updatedDiff', () => {
1616
['array', [1]],
1717
['function', () => ({})],
1818
['date', new Date()],
19+
['date with milliseconds', new Date('2017-01-01T00:00:00.637Z')],
1920
]).test('returns empty object when given values of type %s are equal', (type, value) => {
2021
expect(updatedDiff(value, value)).toEqual({});
2122
});

0 commit comments

Comments
 (0)