Skip to content

Commit

Permalink
Add test for single-digit dates.
Browse files Browse the repository at this point in the history
  • Loading branch information
dplepage committed Mar 16, 2016
1 parent 5f058c3 commit dde0181
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/samples-common/construct-timestamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ module.exports = {
'valid iso8601': new Date(Date.UTC(2001, 11, 15, 2, 59, 43, 100)),
'space separated': new Date(Date.UTC(2001, 11, 15, 2, 59, 43, 100)),
'no time zone (Z)': new Date(Date.UTC(2001, 11, 15, 2, 59, 43, 100)),
'date (00:00:00Z)': new Date(Date.UTC(2002, 11, 14))
'date (00:00:00Z)': new Date(Date.UTC(2002, 11, 14)),
'not a date': '2002-1-1'
};
1 change: 1 addition & 0 deletions test/samples-common/construct-timestamp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ valid iso8601: 2001-12-14t21:59:43.10-05:00
space separated: 2001-12-14 21:59:43.10 -5
no time zone (Z): 2001-12-15 2:59:43.10
date (00:00:00Z): 2002-12-14
not a date: 2002-1-1

0 comments on commit dde0181

Please sign in to comment.