12 lines
344 B
JavaScript
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();
|
|
});
|
|
});
|