Add tests
This commit is contained in:
parent
55e0145fdb
commit
09368340de
|
@ -104,6 +104,26 @@ describe("Test that the object processing works correctly", () => {
|
||||||
}
|
}
|
||||||
expect(error).toBeNull()
|
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", () => {
|
describe("check returning objects", () => {
|
||||||
|
|
Loading…
Reference in New Issue