8b9e97f5b9
added integration test to catch any future regressions
14 lines
247 B
JavaScript
14 lines
247 B
JavaScript
var pg = require('./lib')
|
|
|
|
var Client = pg.Client;
|
|
|
|
pg.connect('pg://localhost/postgres', function(err, client) {
|
|
console.log(err)
|
|
})
|
|
|
|
|
|
new Client({database: 'postgres'}).connect(function(err) {
|
|
console.log(err);
|
|
console.log('connected')
|
|
})
|