From 9a5cdecf5bfbce89b76153d3dfb62403460220c9 Mon Sep 17 00:00:00 2001 From: Kumang Subba Date: Sun, 24 Mar 2024 07:09:52 +0200 Subject: [PATCH] Update 02_repeatString/solution/repeatString-solution.spec.js Co-authored-by: Nikita Revenco <154856872+nikitarevenco@users.noreply.github.com> --- 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 d25625f..1cffa2e 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('odin', number).match(/((odin))/g).length).toEqual( number );