From e7f5d91bd18976e8197bfe3568fc68423242ab5b Mon Sep 17 00:00:00 2001 From: kennotfindsymbol <129994557+kennotfindsymbol@users.noreply.github.com> Date: Fri, 19 Jan 2024 19:19:49 +0800 Subject: [PATCH] Fix typo I think it should be 'randomly' instead of 'randomaly' on line31. --- 02_repeatString/solution/repeatString-solution.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02_repeatString/solution/repeatString-solution.spec.js b/02_repeatString/solution/repeatString-solution.spec.js index c506ce1..e50b3d9 100644 --- a/02_repeatString/solution/repeatString-solution.spec.js +++ b/02_repeatString/solution/repeatString-solution.spec.js @@ -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 );