Skip to content

Commit 9dd9b61

Browse files
committed
chore: clean up entry test
1 parent 74fe070 commit 9dd9b61

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

apps/frontend/src/utils/entry.test.ts renamed to apps/frontend/test/utils/entry.test.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { beforeEach, describe, expect, it } from "vitest";
2-
import { Entry, resolveGaps, resolveGapsInDay } from "./entry";
2+
import { Entry, resolveGaps, resolveGapsInDay } from "../../src/utils/entry";
33

44
describe("entry utils", () => {
55
let entries: Partial<Entry>[];
@@ -11,6 +11,12 @@ describe("entry utils", () => {
1111
];
1212
});
1313

14+
it("should detect no gaps if there are no entries", () => {
15+
const gaps = resolveGapsInDay([]);
16+
17+
expect(gaps).toEqual([]);
18+
});
19+
1420
it("should detect gap between two entries", () => {
1521
const gaps = resolveGapsInDay(entries as Entry[]);
1622

@@ -55,8 +61,6 @@ describe("entry utils", () => {
5561

5662
const gapsPerDay = resolveGaps(entries as Entry[]);
5763

58-
console.log(gapsPerDay);
59-
6064
expect(gapsPerDay[1]).toHaveLength(1);
6165
expect(gapsPerDay[2]).toHaveLength(1);
6266
});

0 commit comments

Comments
 (0)