From b002a078fbe17409b7aa0ea452dc7ff34cd8180d Mon Sep 17 00:00:00 2001 From: mkreuzkam-cap <144103168+mkreuzkam-cap@users.noreply.github.com> Date: Fri, 20 Dec 2024 14:24:13 +0100 Subject: [PATCH] Update apps/server/src/modules/account/domain/services/account-db.service.spec.ts Co-authored-by: Patrick Sachmann <20001160+psachmann@users.noreply.github.com> --- .../account/domain/services/account-db.service.spec.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/server/src/modules/account/domain/services/account-db.service.spec.ts b/apps/server/src/modules/account/domain/services/account-db.service.spec.ts index 9334a0ca93..ef1fc4c79e 100644 --- a/apps/server/src/modules/account/domain/services/account-db.service.spec.ts +++ b/apps/server/src/modules/account/domain/services/account-db.service.spec.ts @@ -711,10 +711,7 @@ describe('AccountDbService', () => { const { account, savedAccount } = setup(); const result = await accountService.saveAll([account]); - - expect(result.length).toBe(1); - expect(result[0]).toStrictEqual(savedAccount); - expect(accountRepo.saveAll).toHaveBeenCalledTimes(1); + expect(result).toStrictEqual([savedAccount]); }); });