1
0
Fork 0
mirror of synced 2024-07-03 21:40:55 +12:00
budibase/packages/string-templates/test/helpers.spec.js

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}")
})
})