Skip to content

Commit d77d78d

Browse files
authored
Merge pull request #13 from tommygonzaleza/master
Issue #201 fixed
2 parents e5a6044 + cc4ff43 commit d77d78d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

exercises/21.3-Filter-list/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ test('The output in the console should match the one in the instructions!', func
2626

2727
//declare your function here
2828
function _filterByName(theArray, theString){
29-
let filteredArray = theArray.filter(item => item.includes(theString))
29+
let filteredArray = theArray.filter(item => item.toLowerCase().includes(theString.toLowerCase()))
3030
return filteredArray
3131
}
3232

exercises/25-Techno-beat/test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ test('The output in the console should match the one in the instructions!', func
4545
let _test3 = _lyricsGenerator([0,0,0])
4646
let _test4 = _lyricsGenerator([1,0,1])
4747
let _test5 = _lyricsGenerator([1,1,1])
48-
expect(console.log).toHaveBeenCalledWith(_test1);
49-
expect(console.log).toHaveBeenCalledWith(_test2);
50-
expect(console.log).toHaveBeenCalledWith(_test3);
51-
expect(console.log).toHaveBeenCalledWith(_test4);
52-
expect(console.log).toHaveBeenCalledWith(_test5);
48+
expect(console.log.trim()).toHaveBeenCalledWith(_test1);
49+
expect(console.log.trim()).toHaveBeenCalledWith(_test2);
50+
expect(console.log.trim()).toHaveBeenCalledWith(_test3);
51+
expect(console.log.trim()).toHaveBeenCalledWith(_test4);
52+
expect(console.log.trim()).toHaveBeenCalledWith(_test5);
5353
});
5454

5555

0 commit comments

Comments
 (0)