Skip to content

Commit

Permalink
Improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
taglioni-r committed May 9, 2024
1 parent 72129cb commit 366998d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/purpose-process/test/testDeletePurposeVersion.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-floating-promises */
import { describe, expect, it, vi } from "vitest";
import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";
import {
getMockPurposeVersion,
getMockPurpose,
Expand Down Expand Up @@ -33,10 +33,14 @@ import {

export const testDeletePurposeVersion = (): ReturnType<typeof describe> =>
describe("deletePurposeVersion", () => {
it("should write in event-store for the deletion of a purpose version", async () => {
beforeAll(() => {
vi.useFakeTimers();
vi.setSystemTime(new Date());

});
afterAll(() => {
vi.useRealTimers();
});
it("should write in event-store for the deletion of a purpose version", async () => {
const mockEService = getMockEService();
const mockPurposeVersion1 = getMockPurposeVersion(
purposeVersionState.waitingForApproval
Expand Down

0 comments on commit 366998d

Please sign in to comment.