8000 02_repeatString/solution - Line-32, replace "odin" with "hey" · rokuruby/javascript-exercises@598ab5c · GitHub
[go: up one dir, main page]

Skip to content

Commit 598ab5c

Browse files
authored
02_repeatString/solution - Line-32, replace "odin" with "hey"
As asked by @JoshDevHub in a discussion of a related PR, I made a similar change to this solution. In the earlier code, the comment description mentioned "hey" as a sample string but the code had "odin" string. This update addresses that tiny gap between sample comments and related code. More on: TheOdinProject#505 (review)
1 parent 0da5ad2 commit 598ab5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

02_repeatString/solution/repeatString-solution.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(
32+
expect(repeatString('hey', number).match(/((hey))/g).length).toEqual(
3333
number
3434
);
3535
});

0 commit comments

Comments
 (0)
0