Skip to content

Commit 958388a

Browse files
committed
Use promise.catch in test
1 parent b9ab8f0 commit 958388a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pg-cursor/test/promises.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('cursor using promises', function () {
2626

2727
it('reject with error', function (done) {
2828
const cursor = this.pgCursor('select asdfasdf')
29-
cursor.read(1).error((err) => {
29+
cursor.read(1).catch((err) => {
3030
assert(err)
3131
done()
3232
})

0 commit comments

Comments
 (0)