14 lines
331 B
JavaScript
14 lines
331 B
JavaScript
const {
|
|
processString,
|
|
} = require("../src/index")
|
|
|
|
describe("test the custom helpers we have applied", () => {
|
|
it("should be able to use the object helper", async () => {
|
|
const output = await processString("object is {{ object obj }}", {
|
|
obj: { a: 1 },
|
|
})
|
|
expect(output).toBe("object is {\"a\":1}")
|
|
})
|
|
|
|
})
|