I assume this was the right place to add the reference to spyOn rather than have a global declaration in the test file?