blob: 7f37407cd683ab75ebf0e18b10d3281cbaff45fc [file] [log] [blame]
var assert = require('assert');
var dateFormat = require('./../lib/dateformat');
describe('dayOfWeek', function() {
it('should correctly format the timezone part', function(done) {
var start = 10; // the 10 of March 2013 is a Sunday
for(var dow = 1; dow <= 7; dow++){
var date = new Date('2013-03-' + (start + dow));
var N = dateFormat(date, 'N');
assert.strictEqual(N, String(dow));
}
done();
});
});