mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
test(yaml): add undefined array entry with skipInvalid
and flowLevel
options test (#5828)
initial commit
This commit is contained in:
parent
78bb214da3
commit
95ad45b118
@ -707,6 +707,20 @@ Deno.test("stringify() handles duplicate array references", () => {
|
||||
);
|
||||
});
|
||||
|
||||
Deno.test({
|
||||
name:
|
||||
"stringify() handles undefined array entry with skipInvalid and flowLevel option",
|
||||
fn() {
|
||||
assertEquals(
|
||||
stringify({ foo: [undefined] }, {
|
||||
flowLevel: 1,
|
||||
skipInvalid: true,
|
||||
}),
|
||||
`foo: []\n`,
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
Deno.test({
|
||||
name:
|
||||
"stringify() handles undefined object entry with skipInvalid and flowLevel option",
|
||||
|
Loading…
Reference in New Issue
Block a user