We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9ab8f0 commit 958388aCopy full SHA for 958388a
packages/pg-cursor/test/promises.js
@@ -26,7 +26,7 @@ describe('cursor using promises', function () {
26
27
it('reject with error', function (done) {
28
const cursor = this.pgCursor('select asdfasdf')
29
- cursor.read(1).error((err) => {
+ cursor.read(1).catch((err) => {
30
assert(err)
31
done()
32
})
0 commit comments