Skip to content

Commit

Permalink
fix: update calculate.test for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-anderson committed Mar 9, 2024
1 parent c353282 commit a3bf0bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/numeric/calculate.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import dayjs from "dayjs";
import { getTimestampAge, getItemAge } from "./calculate";

beforeAll(() => {
beforeEach(() => {
vi.useFakeTimers();
vi.setSystemTime(new Date(2020, 0, 1, 0, 0, 0, 0));
});
afterAll(() => {
afterEach(() => {
vi.useRealTimers();
});

Expand Down

0 comments on commit a3bf0bb

Please sign in to comment.