Skip to content

Commit

Permalink
Merge branch 'master' of github.com:wix/react-native-calendars into r…
Browse files Browse the repository at this point in the history
…elease
  • Loading branch information
Inbal-Tish committed May 15, 2024
2 parents 83fc874 + da9b1bd commit 29d8631
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
20
5 changes: 5 additions & 0 deletions src/interface.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ describe('interface', () => {
expect(date).toBe(undefined);
});

it('should return undefined if date is null', () => {
const date = parseDate(null);
expect(date).toBe(undefined);
});

it('should accept UTC timestamp as argument', () => {
const date = parseDate(1479832134398);
expect(date.getTime()).toEqual(1479832134398);
Expand Down

0 comments on commit 29d8631

Please sign in to comment.