Skip to content

Commit

Permalink
Remove unused imports (#3241)
Browse files Browse the repository at this point in the history
* Remove unused imports

* reinstate test helper

---------

Co-authored-by: alxndrsn <alxndrsn>
  • Loading branch information
alxndrsn authored Jun 5, 2024
1 parent 6e96e45 commit 1625861
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion packages/pg-pool/test/lifetime-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const expect = require('expect.js')

const describe = require('mocha').describe
const it = require('mocha').it
const path = require('path')

const Pool = require('../')

Expand Down
1 change: 0 additions & 1 deletion packages/pg-pool/test/max-uses.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const expect = require('expect.js')
const co = require('co')
const _ = require('lodash')

const describe = require('mocha').describe
const it = require('mocha').it
Expand Down
1 change: 0 additions & 1 deletion packages/pg-pool/test/releasing-clients.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const Pool = require('../')

const expect = require('expect.js')
const net = require('net')

describe('releasing clients', () => {
it('removes a client which cannot be queried', async () => {
Expand Down
1 change: 0 additions & 1 deletion packages/pg/lib/connection.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

var net = require('net')
var EventEmitter = require('events').EventEmitter

const { parse, serialize } = require('pg-protocol')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict'
var helper = require('./test-helper')
var Query = helper.pg.Query
var util = require('util')

var suite = new helper.Suite()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'
var helper = require('./test-helper')
var util = require('util')
var Query = helper.pg.Query
var DatabaseError = helper.pg.DatabaseError

Expand Down
1 change: 0 additions & 1 deletion packages/pg/test/integration/client/timezone-tests.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'
var helper = require('./../test-helper')
var exec = require('child_process').exec

var oldTz = process.env.TZ
process.env.TZ = 'Europe/Berlin'
Expand Down
1 change: 0 additions & 1 deletion packages/pg/test/integration/domain-tests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use strict'
var async = require('async')

var helper = require('./test-helper')
var Query = helper.pg.Query
Expand Down
1 change: 0 additions & 1 deletion packages/pg/test/integration/gh-issues/1105-tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const pg = require('../../../lib')
const helper = require('../test-helper')
const suite = new helper.Suite()

Expand Down
1 change: 0 additions & 1 deletion packages/pg/test/integration/gh-issues/699-tests.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'
var helper = require('../test-helper')
var assert = require('assert')
var copyFrom = require('pg-copy-streams').from

if (helper.args.native) return
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use strict'
var helper = require('../test-helper')
const Suite = require('../../suite')

var assert = require('assert')
Expand Down

0 comments on commit 1625861

Please sign in to comment.