Merge pull request #505 from bhagyeshsp/patch-1

02_repeatString - Line-32, replace "odin" with "hey"
This commit is contained in:
Josh Smith
2025-02-03 15:35:07 -07:00
committed by GitHub
+1 -1
View File
@@ -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('');