Remove redundant test
This functionality is already tested in the node-pg-types repo.
This commit is contained in:
parent
5d821c3acb
commit
5feacd66d0
@ -198,19 +198,3 @@ helper.pg.connect(helper.config, assert.calls(function(err, client, done) {
|
||||
done();
|
||||
})
|
||||
}))
|
||||
|
||||
if(!helper.config.binary) {
|
||||
test("postgres date type", function() {
|
||||
var client = helper.client();
|
||||
var testDate = new Date(2010, 9, 31);
|
||||
client.on('error', function(err) {
|
||||
console.log(err);
|
||||
client.end();
|
||||
});
|
||||
client.query("SELECT $1::date", [testDate], assert.calls(function(err, result){
|
||||
assert.isNull(err);
|
||||
assert.strictEqual(result.rows[0].date.toString(), new Date(Date.UTC(2010, 9, 31)).toString());
|
||||
}));
|
||||
client.on('drain', client.end.bind(client));
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user