Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Feb 8, 2019
1 parent 369bfb1 commit 55c861a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/csv-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ tape("csvFormat(array) takes an array of objects as input", function(test) {
});

tape("csvFormat(array) converts dates to ISO 8601", function(test) {
test.deepEqual(dsv.csvFormat([{date: new Date(Date.UTC(2018, 0, 1))}]), "date\n2018-01-01T00:00:00.000Z");
test.deepEqual(dsv.csvFormat([{date: new Date(Date.UTC(2018, 0, 1))}]), "date\n2018-01-01");
test.deepEqual(dsv.csvFormat([{date: new Date(2018, 0, 1)}]), "date\n2018-01-01T08:00Z");
test.end();
});

Expand Down

0 comments on commit 55c861a

Please sign in to comment.