Skip to content

Commit 1638f38

Browse files
committed
Add failing test for creating a BoundPool from another instance’s settings
1 parent e3a35e9 commit 1638f38

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use strict'
2+
3+
const assert = require('assert')
4+
const helper = require('../test-helper')
5+
6+
test('pool with copied settings includes password', () => {
7+
const original = new helper.pg.Pool({
8+
password: 'original',
9+
})
10+
11+
const copy = new helper.pg.Pool(original.options)
12+
13+
assert.equal(copy.options.password, 'original')
14+
})

0 commit comments

Comments
 (0)