Skip to content

Commit

Permalink
test: Unit test removeUndefined with "0" input
Browse files Browse the repository at this point in the history
  • Loading branch information
akash1810 committed Dec 19, 2023
1 parent 87f929b commit 824038d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cli/transform_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,13 @@ Deno.test("removeUndefined", () => {
};
assertEquals(got, want);
});

Deno.test("removeUndefined where the RHS is 0", () => {
const got = removeUndefined({
errors: "0",
});
const want = {
errors: "0",
};
assertEquals(got, want);
});

0 comments on commit 824038d

Please sign in to comment.