8000 Merge pull request #433 from manny53365/fix-typo-in-test-case · rwong01/javascript-exercises@a84f55b · GitHub
[go: up one dir, main page]

Skip to content

Commit a84f55b

Browse files
Merge pull request TheOdinProject#433 from manny53365/fix-typo-in-test-case
corrected typo in the test case for 02_repeatString
2 parents d740f2d + 7512dd6 commit a84f55b

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