From 7875b9df790ecfd84c6dcd1f8b7d0374b37562c3 Mon Sep 17 00:00:00 2001 From: Tim Date: Sat, 17 Aug 2024 10:02:19 +0200 Subject: [PATCH 1/2] initial commit --- yaml/stringify_test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yaml/stringify_test.ts b/yaml/stringify_test.ts index 8959604dc1c7..8bf0ce1ff0bd 100644 --- a/yaml/stringify_test.ts +++ b/yaml/stringify_test.ts @@ -667,3 +667,7 @@ Oren: Ben-Kiki Deno.test("stringify() handles string", () => { assertEquals(stringify("Hello World"), "Hello World\n"); }); + +Deno.test("stringify() handles unefined with skipInvalid option", () => { + assertEquals(stringify(undefined, { skipInvalid: true }), ""); +}); From def3765c1c7ca467ff85679203755567f5fc6704 Mon Sep 17 00:00:00 2001 From: Tim Date: Sat, 17 Aug 2024 10:05:04 +0200 Subject: [PATCH 2/2] update --- yaml/stringify_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml/stringify_test.ts b/yaml/stringify_test.ts index 8bf0ce1ff0bd..66cc834006b6 100644 --- a/yaml/stringify_test.ts +++ b/yaml/stringify_test.ts @@ -668,6 +668,6 @@ Deno.test("stringify() handles string", () => { assertEquals(stringify("Hello World"), "Hello World\n"); }); -Deno.test("stringify() handles unefined with skipInvalid option", () => { +Deno.test("stringify() handles undefined with skipInvalid option", () => { assertEquals(stringify(undefined, { skipInvalid: true }), ""); });