From 1415c9d778683db0d87bd7891ac365c521dc3544 Mon Sep 17 00:00:00 2001 From: taylorfries Date: Wed, 21 Feb 2024 08:52:33 -0800 Subject: [PATCH] fix parcelsService.test.ts --- .../tests/unit/services/parcels/parcelsService.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/express-api/tests/unit/services/parcels/parcelsService.test.ts b/express-api/tests/unit/services/parcels/parcelsService.test.ts index 445435a7e..08869d86f 100644 --- a/express-api/tests/unit/services/parcels/parcelsService.test.ts +++ b/express-api/tests/unit/services/parcels/parcelsService.test.ts @@ -4,7 +4,7 @@ import { produceParcel } from "tests/testUtils/factories"; import { DeepPartial } from "typeorm"; import * as parcelService from "@/services/parcels/parcelServices"; -jest.setTimeout(30000); +//jest.setTimeout(30000); const parcelRepo = AppDataSource.getRepository(Parcel); @@ -25,7 +25,7 @@ const _parcelFindOne = jest expect(_parcelSave).toHaveBeenCalledTimes(1); expect(ret.Id).toBe(parcel.Id); }); - it('should throw an error if the agency already exists', async => { + it('should throw an error if the agency already exists', () => { const parcel = produceParcel(); _parcelFindOne.mockResolvedValueOnce(parcel); expect(async () => await parcelService.postParcel(parcel)).rejects.toThrow();