Skip to content
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
@lnmunhoz

Description

@lnmunhoz

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions