Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua committed Aug 29, 2024
1 parent 916cb09 commit 2d2e09b
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions dotenv/stringify_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import { assertEquals } from "@std/assert";
import { stringify } from "./stringify.ts";
import { parse } from "./parse.ts";

Deno.test("stringify()", async (t) => {
await t.step(
Expand Down Expand Up @@ -79,12 +78,9 @@ Deno.test("stringify()", async (t) => {
`NULL=`,
),
);
await t.step(
"parse",
() =>
assertEquals(
parse(stringify({ PARSE: "par'se" })),
{ PARSE: "par'se" },
),
);
await t.step("handles single-quote characters", () =>
assertEquals(
stringify({ PARSE: "par'se" }),
`PARSE="par'se"`,
));
});

0 comments on commit 2d2e09b

Please sign in to comment.