pixelnode/node_modules/to-iso-string/test/index.js

10 lines
249 B
JavaScript
Raw Normal View History

2018-04-04 12:31:55 +02:00
var assert = require('assert');
var iso = require('..');
describe('to-iso-string', function () {
it('should work', function () {
var date = new Date("05 October 2011 14:48 UTC");
assert('2011-10-05T14:48:00.000Z' == iso(date));
});
});