diff --git a/exercises/25-Techno-beat/app.js b/exercises/25-Techno-beat/app.js index e1ff43aa..9fab7729 100644 --- a/exercises/25-Techno-beat/app.js +++ b/exercises/25-Techno-beat/app.js @@ -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])) \ No newline at end of file +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()) \ No newline at end of file diff --git a/exercises/25-Techno-beat/test.js b/exercises/25-Techno-beat/test.js index 7e91aa80..b3082742 100644 --- a/exercises/25-Techno-beat/test.js +++ b/exercises/25-Techno-beat/test.js @@ -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); });