Skip to content

Commit 45bfecb

Browse files
committed
update extensions to resolve tests
1 parent 04cf384 commit 45bfecb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/mustache.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import t from "tap";
2-
import { mustache } from "../lib/mustache.ts";
2+
import { mustache } from "../lib/mustache";
33

44
void t.test("mustache", async (t) => {
55
await t.test("must include a path", (t) => {
@@ -9,7 +9,7 @@ void t.test("mustache", async (t) => {
99
});
1010

1111
await t.test("should generate", async (t) => {
12-
const { mustache } = t.mockRequire<typeof import("../lib/mustache.ts")>("../lib/mustache.ts", {
12+
const { mustache } = t.mockRequire<typeof import("../lib/mustache")>("../lib/mustache", {
1313
"node:fs/promises": {
1414
readFile: (path: string) => {
1515
t.equal(path, "path/to/file.txt");
@@ -31,7 +31,7 @@ void t.test("mustache", async (t) => {
3131
});
3232

3333
await t.test("should validate partials", async (t) => {
34-
const { mustache } = t.mockRequire<typeof import("../lib/mustache.ts")>("../lib/mustache.ts", {
34+
const { mustache } = t.mockRequire<typeof import("../lib/mustache")>("../lib/mustache", {
3535
"node:fs/promises": {
3636
readFile: () => Promise.resolve("<% title %>")
3737
}
@@ -59,7 +59,7 @@ void t.test("mustache", async (t) => {
5959
});
6060

6161
await t.test("should fail validation when base template not found", async (t) => {
62-
const { mustache } = t.mockRequire<typeof import("../lib/mustache.ts")>("../lib/mustache.ts", {
62+
const { mustache } = t.mockRequire<typeof import("../lib/mustache")>("../lib/mustache", {
6363
"node:fs/promises": {
6464
readFile: () => Promise.resolve("<% title %>")
6565
}

0 commit comments

Comments
 (0)