We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d29982 commit 9e96690Copy full SHA for 9e96690
src/interface.spec.js
@@ -8,6 +8,11 @@ describe('interface', () => {
8
expect(date).toBe(undefined);
9
});
10
11
+ it('should return undefined if date is null', () => {
12
+ const date = parseDate(null);
13
+ expect(date).toBe(undefined);
14
+ });
15
+
16
it('should accept UTC timestamp as argument', () => {
17
const date = parseDate(1479832134398);
18
expect(date.getTime()).toEqual(1479832134398);
0 commit comments