Fixing mock.

This commit is contained in:
mike12345567 2022-05-20 18:08:48 +01:00
parent 152f0bb0af
commit f0211a0ce8
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ module PgMock {
function Client() {} function Client() {}
Client.prototype.query = query Client.prototype.query = query
Client.prototype.end = jest.fn() Client.prototype.end = jest.fn(cb => {
if (cb) cb()
})
Client.prototype.connect = jest.fn() Client.prototype.connect = jest.fn()
Client.prototype.release = jest.fn() Client.prototype.release = jest.fn()