8000 corrected typo in the test case · josh-Fen/javascript-exercises@7512dd6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7512dd6

Browse files
committed
corrected typo in the test case
1 parent d740f2d commit 7512dd6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

02_repeatString/repeatString.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('repeatString', () => {
2929
/*The .match(/((hey))/g).length is a regex that will count the number of heys
3030
in the result, which if your function works correctly will equal the number that
3131
was randomly generated. */
32-
expect(repeatString('hey', number).match(/((hey))/g).length).toEqual(number);
32+
expect(repeatString('hey', number).match(/(hey)/g).length).toEqual(number);
3333
});
3434
test.skip('works with blank strings', () => {
3535
expect(repeatString('', 10)).toEqual('');

02_repeatString/solution/repeatString-solution.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('repeatString', () => {
2929
/*The .match(/((hey))/g).length is a regex that will count the number of heys
3030
in the result, which if your function works correctly will equal the number that
3131
was randomly generated. */
32-
expect(repeatString('hey', number).match(/((hey))/g).length).toEqual(
32+
expect(repeatString('hey', number).match(/(hey)/g).length).toEqual(
3333
number
3434
);
3535
});

0 commit comments

Comments
 (0)
0