Huh? Why are you creating a spy for 'console.error' and assigning it to 'console'? Also, you shouldn't be doing these checks: just do `spyOn(window, "console")`