1 var assert = require('assert');
3 var dateFormat = require('./../lib/dateformat');
5 describe('dayOfWeek', function() {
6 it('should correctly format the timezone part', function(done) {
7 var start = 10; // the 10 of March 2013 is a Sunday
8 for(var dow = 1; dow <= 7; dow++){
9 var date = new Date('2013-03-' + (start + dow));
10 var N = dateFormat(date, 'N');
11 assert.strictEqual(N, String(dow));