From 2861e62954571062c08661bfac92b1f893cdff2b Mon Sep 17 00:00:00 2001 From: Bhagyesh Pathak <165566941+bhagyeshsp@users.noreply.github.com> Date: Wed, 13 Nov 2024 19:37:26 +0530 Subject: [PATCH] Javascript-exercises: 02_repeatString - Fix code on line 32 The original code had "hey" as the seed string value and hence the comment on line-29 mentions "hey". But the last commit on the code changed "hey" to "odin". We can either change instances of comment or the code. I propose changing the code instance from "odin" to "hey" for consistency. --- 02_repeatString/repeatString.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02_repeatString/repeatString.spec.js b/02_repeatString/repeatString.spec.js index c9e8d6e..305bce2 100644 --- a/02_repeatString/repeatString.spec.js +++ b/02_repeatString/repeatString.spec.js @@ -29,7 +29,7 @@ describe('repeatString', () => { /*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 randomly generated. */ - expect(repeatString('odin', number).match(/((odin))/g).length).toEqual(number); + expect(repeatString('hey', number).match(/((hey))/g).length).toEqual(number); }); test.skip('works with blank strings', () => { expect(repeatString('', 10)).toEqual('');