1
0
Fork 0
mirror of synced 2024-09-28 07:11:40 +12:00

Add tests

This commit is contained in:
Adria Navarro 2024-03-21 17:29:55 +01:00
parent 55e0145fdb
commit 09368340de

View file

@ -104,6 +104,26 @@ describe("Test that the object processing works correctly", () => {
}
expect(error).toBeNull()
})
it("should be able to handle booleans", async () => {
const output = await processObject(
{
first: true,
second: "true",
third: "another string",
forth: "with {{ template }}",
},
{
template: "value",
}
)
expect(output).toEqual({
first: true,
second: "true",
third: "another string",
forth: "with value",
})
})
})
describe("check returning objects", () => {