Skip to content

Commit ab6b5a4

Browse files
committed
fix: correct error message and test description for non-number array validation
1 parent e912e06 commit ab6b5a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Sprint-1/implement/mean.test.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ test("throws when not given an array", () => {
2424
);
2525
});
2626

27-
test("throws for an array containing. a non-number", () => {
27+
test("throws for an array containing a non-number", () => {
2828
expect(() => calculateMean([1, "2", 3])).toThrow(
29-
new Error("calculateMean requires a array of numbers")
29+
new Error("calculateMean requires an array of numbers")
3030
);
3131
});

0 commit comments

Comments
 (0)