Skip to content

Instantly share code, notes, and snippets.

@JerrySievert
Created January 11, 2016 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JerrySievert/fb5ca4a73e71b3364da7 to your computer and use it in GitHub Desktop.
Save JerrySievert/fb5ca4a73e71b3364da7 to your computer and use it in GitHub Desktop.
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