Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit eb98808

Browse files
bug fix - const to let in tests
1 parent a51985b commit eb98808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎starter-code/tests/FunctionsAndArraysSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('Finding Longest Word - findLongestWord', () => {
4949
});
5050

5151
it('returns the longest occurrence when it has multiple words', () => {
52-
const words = ['a', 'zab', '12abc', '$$abcd', 'abcde', 'ironhack'];
52+
let words = ['a', 'zab', '12abc', '$$abcd', 'abcde', 'ironhack'];
5353
for (let i = 0; i < 10; i++) {
5454
words = shuffle(words);
5555
expect(findLongestWord(words)).toBe('ironhack');

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /