diff --git a/tests/utils.test.ts b/tests/utils.test.ts index ecc820d..c9d071b 100644 --- a/tests/utils.test.ts +++ b/tests/utils.test.ts @@ -40,9 +40,15 @@ describe("Utils", () => { }) }) test("should not do path escaping on non-path compiles", async () => { - expect(handlebarsParse(blankConf, "/home/test/{{name}} \\{{escaped}}.txt", { isPath: false })).toEqual( - "/home/test/test {{escaped}}.txt" - ) + expect( + handlebarsParse( + { ...blankConf, data: { ...blankConf.data, escaped: "value" } }, + "/home/test/{{name}} \\{{escaped}}.txt", + { + isPath: false, + } + ) + ).toEqual("/home/test/test {{escaped}}.txt") }) }) })