diff options
Diffstat (limited to 'node_modules/to-iso-string/test/index.js')
-rw-r--r-- | node_modules/to-iso-string/test/index.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/node_modules/to-iso-string/test/index.js b/node_modules/to-iso-string/test/index.js new file mode 100644 index 000000000..11456b37f --- /dev/null +++ b/node_modules/to-iso-string/test/index.js @@ -0,0 +1,10 @@ + +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)); + }); +});
\ No newline at end of file |