2021-01-19 19:44:29 +01:00
|
|
|
const {
|
|
|
|
processString,
|
|
|
|
} = require("../src/index")
|
|
|
|
|
|
|
|
describe("test the custom helpers we have applied", () => {
|
2021-01-20 14:32:15 +01:00
|
|
|
it("should be able to use the object helper", async () => {
|
|
|
|
const output = await processString("object is {{ object obj }}", {
|
2021-01-19 19:44:29 +01:00
|
|
|
obj: { a: 1 },
|
|
|
|
})
|
|
|
|
expect(output).toBe("object is {\"a\":1}")
|
|
|
|
})
|
|
|
|
})
|