8000 Javascript-exercises: 02_repeatString - Fix code on line 32 · rokuruby/javascript-exercises@2861e62 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2861e62

Browse files
authored
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.
1 parent 203fd76 commit 2861e62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

02_repeatString/repeatString.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('repeatString', () => {
2929
/*The .match(/((hey))/g).length is a regex that will count the number of heys
3030
in the result, which if your function works correctly will equal the number that
3131
was randomly generated. */
32-
expect(repeatString('odin', number).match(/((odin))/g).length).toEqual(number);
32+
expect(repeatString('hey', number).match(/((hey))/g).length).toEqual(number);
3333
});
3434
test.skip('works with blank strings', () => {
3535
expect(repeatString('', 10)).toEqual('');

0 commit comments

Comments
 (0)
0