Skip to content

Commit d3d9156

Browse files
committed
test: add case to verify calculateMean returns correct value for single item array
1 parent 320a5fa commit d3d9156

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
@@ -28,8 +28,8 @@ test("given [1, 2, 6], returns 3", () => {
2828
});
2929

3030
test("returns the number for a single item array", () => {
31-
expect(calculateMean)
32-
})
31+
expect(calculateMean([8])).toBe(8);
32+
});
3333

3434
// Given an array with a single number
3535
// When passed to calculateMean

0 commit comments

Comments
 (0)