Skip to content

Commit

Permalink
fix: turn the response value into an array object
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrelstan committed Jan 15, 2022
1 parent 7f8df15 commit db5bb23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/infra/database/BaseRepository.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,13 @@ describe('BaseRepository', () => {
})
})

describe('update', () => {
describe.only('update', () => {
it('update', async () => {
tracker.uninstall()
tracker.install()
tracker.on('query', (query) => {
expect(query.sql).toMatch(/update.*testTable.*/)
query.response({ id: 1 })
query.response([{ id: 1 }])
})
const result = await baseRepository.update({
id: 1,
Expand Down

0 comments on commit db5bb23

Please sign in to comment.