Skip to content

Commit eb98808

Browse files
committed
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)