node-postgres/test/helper.js
Calvin Metcalf 41b7d7d4de fix up tests
2014-05-14 09:51:56 -04:00

18 lines
296 B
JavaScript

var pg = require('pg.js')
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)
})
})
}