node-postgres/test/helper.js
Brian Carlson e517b8ce14 WIP
2017-08-05 18:27:29 -05:00

18 lines
293 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)
})
})
}