UNPKG

540 BJavaScriptView Raw
1// Dependencies
2var vows = require('vows'),
3 assert = require('assert');
4
5// Suite Test
6
7var suite = vows.describe('Solr Date');
8
9suite.addBatch({
10 'Date submitted by the user being based on Local time.' : {
11 topic : function() {
12 return (new Date('Fri Oct 07 2011 18:24:00 GMT+0200 (CEST)')).toISOString();
13 },
14 'should return a Date following this pattern 1995-12-31T23:59:59.999Z and based on UTC time' : function(date){
15 assert.equal(date,'2011-10-07T16:24:00.000Z');
16 }
17 }
18}).export(module);