node-postgres/test/helper.js
Brian M. Carlson b1f8f8d60d Eslint
2017-08-06 11:59:47 -05:00

18 lines
297 B
JavaScript

var pg = require('pg')
module.exports = function (name, cb) {
describe(name, function () {
var client = new pg.Client()
before(function (done) {
client.connect(done)
})
cb(client)
after(function (done) {
client.end()
client.on('end', done)
})
})
}