Created
January 11, 2016 19:43
-
-
Save JerrySievert/fb5ca4a73e71b3364da7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var vows = require('vows'); | |
var assert = require('assert'); | |
require('../lib/date-utils.js').language('es'); | |
vows.describe('Date Validate').addBatch({ | |
'spanish dates are correct': { | |
topic: function ( ) { | |
var instance = new Date('January 1, 2016 16:00:00'); | |
return instance; | |
}, | |
'DDDD is correctly set': function (topic) { | |
assert.equal(topic.toFormat('DDDD'), 'Viernes'); | |
} | |
} | |
}).export(module); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment