Skip to content

Commit b4c7736

Browse files
committed
test: allow QuickAddEngine test instantiation
1 parent 9f3401a commit b4c7736

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/engine/QuickAddEngine.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import { describe, expect, it } from "vitest";
22
import { QuickAddEngine } from "./QuickAddEngine";
33

44
class TestEngine extends QuickAddEngine {
5+
public constructor() {
6+
super({} as any);
7+
}
8+
59
public normalize(folderPath: string, fileName: string): string {
610
return this.normalizeMarkdownFilePath(folderPath, fileName);
711
}
@@ -10,7 +14,7 @@ class TestEngine extends QuickAddEngine {
1014
}
1115

1216
describe("QuickAddEngine path normalization", () => {
13-
const engine = new TestEngine({} as any);
17+
const engine = new TestEngine();
1418

1519
it("strips leading slashes from folder and file", () => {
1620
expect(engine.normalize("/daily", "/note")).toBe("daily/note.md");

0 commit comments

Comments
 (0)