Skip to content

Commit 29d8631

Browse files
committed
Merge branch 'master' of github.com:wix/react-native-calendars into release
2 parents 83fc874 + da9b1bd commit 29d8631

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14
1+
20

src/interface.spec.js

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ describe('interface', () => {
88
expect(date).toBe(undefined);
99
});
1010

11+
it('should return undefined if date is null', () => {
12+
const date = parseDate(null);
13+
expect(date).toBe(undefined);
14+
});
15+
1116
it('should accept UTC timestamp as argument', () => {
1217
const date = parseDate(1479832134398);
1318
expect(date.getTime()).toEqual(1479832134398);

0 commit comments

Comments
 (0)