Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1faa02f

Browse files
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月01日T00: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月01日T00: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)

AltStyle によって変換されたページ (->オリジナル) /