Skip to content

Commit

Permalink
Remove redundant test
Browse files Browse the repository at this point in the history
This functionality is already tested in the node-pg-types repo.
  • Loading branch information
brianc committed Dec 11, 2016
1 parent 5d821c3 commit 5feacd6
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions test/integration/client/type-coercion-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
}

0 comments on commit 5feacd6

Please sign in to comment.