datatype.test: use predefined date

Some databases are storing the value in UTC (not ISO) format,
and truncating the values. Even though this is technically
unavoidable, it does fail strict string equality.
This commit is contained in:
Kevin Delisle 2017-04-28 15:36:44 -04:00
parent f8046637ac
commit 8e97385a8f
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ describe('datatypes', function() {
});
it('should keep types when get read data from db', function(done) {
var d = new Date, id;
var d = new Date('2015-01-01T12:00:00'), id;
Model.create({
str: 'hello', date: d, num: '3', bool: 1, list: ['test'], arr: [1, 'str'],