Skip to content
This repository was archived by the owner on Feb 19, 2021. It is now read-only.
This repository was archived by the owner on Feb 19, 2021. It is now read-only.

No mention of having to fix tests for notifications in Lab 7 #193

@tmartensen

Description

@tmartensen

It seems that once someone is finished with Lab 7, there are a bunch of tests in test/unit/app/employees/controllers.spec.js that fail after all the lab instructions are finished. Recommend adding instructions for the lab to adding instructions for injecting the notifications service into the beforeEach where the api is being injected, as well as the two notifications stubs, and an example of how to tell if the notification stubs have been called or not:
Injector:

var notifications = $injector.get('notifications');

Stubs:

success: sinon.stub(notifications, 'success'),
error: sinon.stub(notifications, 'error')

Stubbing examples:

expect(spies.success).to.have.been.called;
expect(spies.error).to.not.have.been.called;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions