Browse Source

Fixing mock.

master
mike12345567 4 years ago
parent
commit
5b1ae1f6fc
  1. 4
      packages/server/__mocks__/pg.ts

4
packages/server/__mocks__/pg.ts

@ -14,7 +14,9 @@ module PgMock {
function Client() {}
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.release = jest.fn()

Loading…
Cancel
Save