wallet-core/node_modules/to-iso-string/test/index.js

10 lines
249 B
JavaScript
Raw Normal View History

2016-10-10 03:43:44 +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));
});
});