Skip to content

Commit 4a9d910

Browse files
committed
test: add test for empty input in parseArray function
1 parent 345b5d9 commit 4a9d910

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

src/helpers/parseArray.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { parseArray } from "./parseArray";
33

44
describe("parseArray", () => {
55
test("default separator is comma", () => {
6+
expect(parseArray("")).toEqual([]);
67
expect(parseArray("a,b,c")).toEqual(["a", "b", "c"]);
78
expect(parseArray("a, b, c")).toEqual(["a", "b", "c"]);
89
});

src/random/randomParagraph.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { array } from "../helpers";
21
import { capitalize } from "../helpers/capitalize";
32
import { randomInt } from "./randomInt";
43
import { randomWord } from "./randomWord";

0 commit comments

Comments
 (0)