From 5feacd66d0499ff672f52bc3b68db657eeafa556 Mon Sep 17 00:00:00 2001 From: Brian Carlson Date: Sat, 10 Dec 2016 18:17:09 -0600 Subject: [PATCH] Remove redundant test This functionality is already tested in the node-pg-types repo. --- test/integration/client/type-coercion-tests.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/test/integration/client/type-coercion-tests.js b/test/integration/client/type-coercion-tests.js index 70eff30..d961c29 100644 --- a/test/integration/client/type-coercion-tests.js +++ b/test/integration/client/type-coercion-tests.js @@ -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)); - }); -}