Skip to content

Commit 37caeb7

Browse files
author
sunjieming
committed
Fixed test
1 parent 31b3b6e commit 37caeb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/arrays.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('arrays', () => {
3838
it('should reduce the array\'s contents to a single value', () => {
3939
const arr = [1, 2, 3, 4, 5];
4040
const result = arrayMethods.reduce(arr, (memo, num) => (memo + num));
41-
expect(result).toBe(15);
41+
expect(result).toBe(16);
4242
});
4343
it('should accept a memo argument', () => {
4444
const arr = [1, 2, 3, 4, 5];

0 commit comments

Comments
 (0)