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: how to unit test a service #12894

Open
@skolsuper

Description

@skolsuper

The developer guide docs cover specifically how to unit test a controller, how to test a directive, and how to test a transclusion directive, but not how to test a service. I have been clicking around stackoverflow for about 4 hours now and have found 100 different ways of doing this, none of which have worked. What is the canonical way of unit testing e.g. "myLoginService"?

edit: in angular 1.3.19

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions