Skip to content

Commit 8e97385

Browse files
author
Kevin Delisle
committed
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.
1 parent f804663 commit 8e97385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/datatype.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('datatypes', function() {
5555
});
5656

5757
it('should keep types when get read data from db', function(done) {
58-
var d = new Date, id;
58+
var d = new Date('2015-01-01T12:00:00'), id;
5959

6060
Model.create({
6161
str: 'hello', date: d, num: '3', bool: 1, list: ['test'], arr: [1, 'str'],

0 commit comments

Comments
 (0)