UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

16 lines (13 loc) 442 B
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(); }); });