Skip to content

Commit 9d715a4

Browse files
committed
test: implement test for calculateMean function with sample input
1 parent 9fe1206 commit 9d715a4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ const calculateMean = require("./mean.js");
2323
// When passed to calculateMean
2424
// Then it should return their mean
2525
// Delete this test.todo and replace it with a test.
26-
test.todo("given [1, 2, 6], returns 3");
26+
test("given [1, 2, 6], returns 3", () => {
27+
expect(calculateMean([8])).toBe(8);
28+
});
2729

2830
// Given an array with a single number
2931
// When passed to calculateMean

0 commit comments

Comments
 (0)