This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
docs(ngMock.$httpBackend): suggestion for best understanding the tests. #9537
Closed
Description
The tests don't have the primary line when you're testing your module.
beforeEach(module('MyApp')) // Your app module name.
When I was trying to test I get this module undefined error
and I get stuck on that for a while, and just after read some blog posts I figure out that this primary line is essential. My point is that I think this is a important thing when you're starting to test, and a lot of people get stuck on that. So if the docs can be more especific and more helpful, why will not be?