Skip to content

Commit

Permalink
Fix for error in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dolezel committed Nov 29, 2019
1 parent ac09a89 commit d6bade9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/db-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('lib/db', () => {
})

it('pg.Client should be called with connection string', () => {
const mocked = sandbox.stub(pgMock, 'Client')
const mocked = sandbox.stub(pgMock, 'Client').returns({ end() {} })
db = Db('connection_string')
expect(mocked).to.be.calledWith('connection_string')
})
Expand Down

0 comments on commit d6bade9

Please sign in to comment.