Skip to content

Commit

Permalink
Add test format and create 4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorhakes committed Mar 3, 2020
1 parent cd9c64d commit 91680e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fecha",
"version": "4.1.0",
"version": "4.2.0",
"description": "Date formatting and parsing",
"main": "lib/fecha.umd.js",
"module": "lib/fecha.js",
Expand Down
7 changes: 7 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,13 @@ testFormat(
);
testFormat("current date", new Date(), "YYYY", "" + new Date().getFullYear());
testFormat("mask", new Date(1999, 0, 2), "mediumDate", "Jan 2, 1999");
testFormat("mask isoDate", new Date(1999, 0, 2), "isoDate", "1999-01-02");
testFormat(
"mask isoDateTime",
new Date(1999, 0, 2, 5, 7, 9),
"isoDateTime",
"1999-01-02T05:07:09-05:00"
);
testFormat(
"number date",
1325376000000,
Expand Down

0 comments on commit 91680e4

Please sign in to comment.