Skip to content

Issue #201 fixed #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/21.3-Filter-list/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test('The output in the console should match the one in the instructions!', func

//declare your function here
function _filterByName(theArray, theString){
let filteredArray = theArray.filter(item => item.includes(theString))
let filteredArray = theArray.filter(item => item.toLowerCase().includes(theString.toLowerCase()))
return filteredArray
}

Expand Down
10 changes: 5 additions & 5 deletions exercises/25-Techno-beat/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ test('The output in the console should match the one in the instructions!', func
let _test3 = _lyricsGenerator([0,0,0])
let _test4 = _lyricsGenerator([1,0,1])
let _test5 = _lyricsGenerator([1,1,1])
expect(console.log).toHaveBeenCalledWith(_test1);
expect(console.log).toHaveBeenCalledWith(_test2);
expect(console.log).toHaveBeenCalledWith(_test3);
expect(console.log).toHaveBeenCalledWith(_test4);
expect(console.log).toHaveBeenCalledWith(_test5);
expect(console.log.trim()).toHaveBeenCalledWith(_test1);
expect(console.log.trim()).toHaveBeenCalledWith(_test2);
expect(console.log.trim()).toHaveBeenCalledWith(_test3);
expect(console.log.trim()).toHaveBeenCalledWith(_test4);
expect(console.log.trim()).toHaveBeenCalledWith(_test5);
});


Expand Down