scotch-angular-testing
scotch-angular-testing copied to clipboard
TypeError: Cannot read property 'toBeUndefined' of undefined
I'd got an error: "TypeError: Cannot read property 'toBeUndefined' of undefined" passing tutorial on the page: https://scotch.io/tutorials/testing-angularjs-with-jasmine-and-karma-part-1. Pre-pre-last block (before #Coclusion) adds new test for checking method "findById". The aim is to check the case: method will return undefined if there is not user with id assigned as parameter. What I'm doing wrong?
Hi @nickbarban, could you post your code for users.js
and users.spec.js
here?