eq directive
This commit is contained in:
@@ -289,3 +289,11 @@ test("if elseif else",() => {
|
||||
expect(content).toContain("test3")
|
||||
})
|
||||
|
||||
test("if eq in path", () => {
|
||||
const createRenderer = initRenderer("./testdata/eq_in_path")
|
||||
const render = createRenderer(z.object({test: z.string()}))
|
||||
render(tmp,{test:"test"})
|
||||
expect(existsSync(join(tmp,"test"))).toBe(true)
|
||||
render(tmp,{test:"foo"})
|
||||
expect(existsSync(join(tmp,"test"))).toBe(false)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user