mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
parent
bb0db58caa
commit
60402c697f
@ -678,3 +678,16 @@ Deno.test("stringify() uses quotes around deprecated boolean notations when `com
|
||||
Deno.test("stringify() handles undefined with skipInvalid option", () => {
|
||||
assertEquals(stringify(undefined, { skipInvalid: true }), "");
|
||||
});
|
||||
|
||||
Deno.test({
|
||||
name: "stringify() handles object with condenseFlow option",
|
||||
fn() {
|
||||
assertEquals(
|
||||
stringify({ foo: ["bar", "baz"], bar: { hello: "world" } }, {
|
||||
flowLevel: 1,
|
||||
condenseFlow: true,
|
||||
}),
|
||||
`foo: [bar,baz]\nbar: {"hello":world}\n`,
|
||||
);
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user