13 lines
330 B
JavaScript
13 lines
330 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}")
|
|
})
|
|
|
|
}) |