Skip to content

Commit 29c92a5

Browse files
committed
recent changes to sprint 2
1 parent a8fa96f commit 29c92a5

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

‎Sprint-2/implement/tally.test.js‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,13 @@ test("returns an empty object when given an empty array", () => {
5151
// Then it should throw Error("tally requires an array")
5252

5353
test("throws an error when given a string", () => {
54-
expect(() => tally("hello")).toThrow(
55-
new Error("tally requires an array")
56-
);
54+
expect(() => tally("hello")).toThrow(new Error("tally requires an array"));
5755
});
5856

5957
test("throws an error when given a number", () => {
60-
expect(() => tally(42)).toThrow(
61-
new Error("tally requires an array")
62-
);
58+
expect(() => tally(42)).toThrow(new Error("tally requires an array"));
6359
});
6460

6561
test("throws an error when given no argument", () => {
66-
expect(() => tally()).toThrow(
67-
new Error("tally requires an array")
68-
);
69-
});
62+
expect(() => tally()).toThrow(new Error("tally requires an array"));
63+
});

0 commit comments

Comments
 (0)