Skip to content

Commit 9306d71

Browse files
authored
Update test.js
1 parent f570c19 commit 9306d71

File tree

1 file changed

+2
-2
lines changed
  • exercises/14-Divide-and-Conquer

1 file changed

+2
-2
lines changed

exercises/14-Divide-and-Conquer/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test('You have to use a "for" loop', () => {
1919
const regex = /for\s*/gm
2020
expect(regex.test(file.toString())).toBeTruthy();
2121
})
22-
test('You have to use a "for" loop', () => {
22+
test('You must use the .concat() method', () => {
2323
const file = fs.readFileSync(path.resolve(__dirname, './app.js'), 'utf8');
2424
const regex = /.concat\s*/gm
2525
expect(regex.test(file.toString())).toBeTruthy();
@@ -63,4 +63,4 @@ test('The returned array must contain inside all the even items at the end', ()
6363

6464
_evens_1.forEach((num, i) => expect(num).toEqual(arrTest_1[i + 8]))
6565
_evens_2.forEach((num, i) => expect(num).toEqual(arrTest_2[i + 5]))
66-
});
66+
});

0 commit comments

Comments
 (0)