Merge pull request #426 from kennotfindsymbol/patch-1

02_repeatString/solution/repeatString-solution.spec.js: Fix typo
This commit is contained in:
Eric Olkowski
2024-01-19 07:28:15 -05:00
committed by GitHub
@@ -28,7 +28,7 @@ describe('repeatString', () => {
const number = Math.floor(Math.random() * 1000);
/*The .match(/((hey))/g).length is a regex that will count the number of heys
in the result, which if your function works correctly will equal the number that
was randomaly generated. */
was randomly generated. */
expect(repeatString('hey', number).match(/((hey))/g).length).toEqual(
number
);