Skip to content
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
lnmunhoz opened this issue Oct 10, 2014 · 2 comments
Closed

Comments

@lnmunhoz
Copy link
Contributor

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?

@jeffbcross jeffbcross self-assigned this Oct 10, 2014
@jeffbcross
Copy link
Contributor

Hi @lnmunhoz, if you have an idea to improve the docs, a PR would be welcome!

@jeffbcross jeffbcross added this to the Backlog milestone Oct 10, 2014
@jeffbcross jeffbcross removed their assignment Oct 10, 2014
IgorMinar pushed a commit that referenced this issue Oct 13, 2014
According with the Issue #9537. This module declaration in the test is very important. When I started to test in angular I copy and paste this code to see how it works, and I get this `module undefined error`, and just after read some blog posts I figure out that this line is essential for testing your module. So, for best understanding of begginers this can be very helpful.

Closes #9563
@lnmunhoz
Copy link
Contributor Author

Already merged, closing this Issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants