Skip to content
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
10 changes: 5 additions & 5 deletions exercises/25-Techno-beat/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

// test Data
console.log(lyricsGenerator([0,0,1,1,0,0,0]))
console.log(lyricsGenerator([0,0,1,1,1,0,0,0]))
console.log(lyricsGenerator([0,0,0]))
console.log(lyricsGenerator([1,0,1]))
console.log(lyricsGenerator([1,1,1]))
console.log(lyricsGenerator([0,0,1,1,0,0,0]).trim())
console.log(lyricsGenerator([0,0,1,1,1,0,0,0]).trim())
console.log(lyricsGenerator([0,0,0]).trim())
console.log(lyricsGenerator([1,0,1]).trim())
console.log(lyricsGenerator([1,1,1]).trim())
12 changes: 6 additions & 6 deletions exercises/25-Techno-beat/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ test('The output in the console should match the one in the instructions!', func
return string.trim()
}


let _test1 = _lyricsGenerator([0,0,1,1,0,0,0])
let _test2 = _lyricsGenerator([0,0,1,1,1,0,0,0])
let _test3 = _lyricsGenerator([0,0,0])
let _test4 = _lyricsGenerator([1,0,1])
let _test5 = _lyricsGenerator([1,1,1])
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);

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);
});


Expand Down