Skip to content

Commit

Permalink
fix parcelsService.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
TaylorFries committed Feb 21, 2024
1 parent 2df94a3 commit 1415c9d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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();
Expand Down

0 comments on commit 1415c9d

Please sign in to comment.