Remove trailing whitespace from tests

This commit is contained in:
Christopher Jones 2016-03-24 21:26:28 +11:00
parent 8838a4e567
commit 67d3070b14
3 changed files with 8 additions and 8 deletions

View File

@ -495,9 +495,9 @@ assist.dataTypeSupport = function(connection, tableName, array, done) {
result.rows[i].CONTENT.should.eql(array[result.rows[i].NUM]);
else if( Buffer.isBuffer(result.rows[i].CONTENT) )
result.rows[i].CONTENT.toString('hex').should.eql(array[result.rows[i].NUM].toString('hex'));
else if (Object.prototype.toString.call(result.rows[i].CONTENT) === '[object Date]')
else if (Object.prototype.toString.call(result.rows[i].CONTENT) === '[object Date]')
result.rows[i].CONTENT.getTime().should.eql(array[result.rows[i].NUM].getTime());
else
else
should.not.exist(new Error('Uncaught data type!'));
}
done();
@ -576,9 +576,9 @@ function fetchRowsFromRS(rs, array, cb)
rows[i].CONTENT.should.eql(array[rows[i].NUM]);
else if( Buffer.isBuffer(rows[i].CONTENT) )
rows[i].CONTENT.toString('hex').should.eql(array[rows[i].NUM].toString('hex'));
else if (Object.prototype.toString.call(rows[i].CONTENT) === '[object Date]')
else if (Object.prototype.toString.call(rows[i].CONTENT) === '[object Date]')
rows[i].CONTENT.getTime().should.eql(array[rows[i].NUM].getTime());
else
else
should.not.exist(new Error('Uncaught data type!'));
}
return fetchRowsFromRS(rs, array, cb);

View File

@ -85,10 +85,10 @@ describe('32. dataTypeDate.js', function() {
it('32.1.1 works well with SELECT query', function(done) {
var arrayLength = dates.length;
for (var i = 0; i < arrayLength; i++) {
if (dates[i].getMilliseconds() > 0)
dates[i].setMilliseconds(0);
if (dates[i].getMilliseconds() > 0)
dates[i].setMilliseconds(0);
}
assist.dataTypeSupport(connection, tableName, dates, done);
})

View File

@ -240,7 +240,7 @@
13.1.10 meta data
13.1.11 stream results with bulk size set
13.1.12 stream stress test
21. datatypeAssist.js
22. dataTypeChar.js