test(yaml): add edge case test for stringify (#5704)

This commit is contained in:
Tim Reichen 2024-08-19 06:24:21 +02:00 committed by GitHub
parent 19675cd695
commit 36817b7985
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -667,3 +667,7 @@ Oren: Ben-Kiki
Deno.test("stringify() handles string", () => {
assertEquals(stringify("Hello World"), "Hello World\n");
});
Deno.test("stringify() handles undefined with skipInvalid option", () => {
assertEquals(stringify(undefined, { skipInvalid: true }), "");
});