1
1
import t from "tap" ;
2
- import { mustache } from "../lib/mustache.ts " ;
2
+ import { mustache } from "../lib/mustache" ;
3
3
4
4
void t . test ( "mustache" , async ( t ) => {
5
5
await t . test ( "must include a path" , ( t ) => {
@@ -9,7 +9,7 @@ void t.test("mustache", async (t) => {
9
9
} ) ;
10
10
11
11
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" , {
13
13
"node:fs/promises" : {
14
14
readFile : ( path : string ) => {
15
15
t . equal ( path , "path/to/file.txt" ) ;
@@ -31,7 +31,7 @@ void t.test("mustache", async (t) => {
31
31
} ) ;
32
32
33
33
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" , {
35
35
"node:fs/promises" : {
36
36
readFile : ( ) => Promise . resolve ( "<% title %>" )
37
37
}
@@ -59,7 +59,7 @@ void t.test("mustache", async (t) => {
59
59
} ) ;
60
60
61
61
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" , {
63
63
"node:fs/promises" : {
64
64
readFile : ( ) => Promise . resolve ( "<% title %>" )
65
65
}
0 commit comments