From db5bb234149caaed6652634cee59371ca6df5965 Mon Sep 17 00:00:00 2001 From: Stanley Pierre-Louis Date: Sat, 15 Jan 2022 09:14:46 -0400 Subject: [PATCH] fix: turn the response value into an array object --- server/infra/database/BaseRepository.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/infra/database/BaseRepository.spec.ts b/server/infra/database/BaseRepository.spec.ts index 98ee9eb6..7ba6f4ba 100644 --- a/server/infra/database/BaseRepository.spec.ts +++ b/server/infra/database/BaseRepository.spec.ts @@ -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,