Add tests

This commit is contained in:
Adria Navarro 2024-03-21 17:29:55 +01:00
parent 55e0145fdb
commit 09368340de
1 changed files with 20 additions and 0 deletions

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", () => {