aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/dateformat/test/test_isoutcdatetime.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/dateformat/test/test_isoutcdatetime.js')
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/dateformat/test/test_isoutcdatetime.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/dateformat/test/test_isoutcdatetime.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/dateformat/test/test_isoutcdatetime.js
new file mode 100644
index 00000000..886b7a5b
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/dateformat/test/test_isoutcdatetime.js
@@ -0,0 +1,11 @@
+var assert = require('assert');
+
+var dateFormat = require('./../lib/dateformat');
+
+describe('isoUtcDateTime', function() {
+ it('should correctly format the timezone part', function(done) {
+ var actual = dateFormat('2014-06-02T13:23:21-08:00', 'isoUtcDateTime');
+ assert.strictEqual(actual, '2014-06-02T21:23:21Z');
+ done();
+ });
+});