We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7303ef5 commit 1bde7d4Copy full SHA for 1bde7d4
packages/pg/test/unit/client/throw-in-type-parser-tests.js
@@ -8,8 +8,17 @@ const suite = new helper.Suite()
8
9
var typeParserError = new TypeError('TEST: Throw in type parsers')
10
11
-types.setTypeParser('special oid that will throw', function () {
12
- throw typeParserError
+suite.test('special oid that will throw', function (done) {
+ try{
13
+ types.setTypeParser('special oid that will throw', function () {
14
+ throw typeParserError
15
+ })
16
+ assert.equal(true, false)
17
+ } catch(err) {
18
+ assert.equal(err, typeParserError)
19
+ } finally {
20
+ done()
21
+ }
22
})
23
24
const emitFakeEvents = (con) => {
0 commit comments