We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d740f2d + 7512dd6 commit a84f55bCopy full SHA for a84f55b
2 files changed
02_repeatString/repeatString.spec.js
@@ -29,7 +29,7 @@ describe('repeatString', () => {
29
/*The .match(/((hey))/g).length is a regex that will count the number of heys
30
in the result, which if your function works correctly will equal the number that
31
was randomly generated. */
32
- expect(repeatString('hey', number).match(/((hey))/g).length).toEqual(number);
+ expect(repeatString('hey', number).match(/(hey)/g).length).toEqual(number);
33
});
34
test.skip('works with blank strings', () => {
35
expect(repeatString('', 10)).toEqual('');
02_repeatString/solution/repeatString-solution.spec.js
- expect(repeatString('hey', number).match(/((hey))/g).length).toEqual(
+ expect(repeatString('hey', number).match(/(hey)/g).length).toEqual(
number
);
0 commit comments