anorgatarrak-wordpress-theme/node_modules/dateformat/test/test_isoutcdatetime.js

12 lines
344 B
JavaScript

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();
});
});