Skip to content

Commit

Permalink
datatype.test: use predefined date
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kevin Delisle committed Apr 28, 2017
1 parent f804663 commit 8e97385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/datatype.test.js
Expand Up @@ -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'],
Expand Down

0 comments on commit 8e97385

Please sign in to comment.