GoConqr has a new look! Let us know what you think.

Notes

Angular Jasmine notes

James Drummond Angular A-Level English 1 page

Content of the notes (1)

Page 1

Good article: http://www.sitepoint.com/unit-and-e2e-testing-in-angularjs/

When you're creating the controller, you need to inject it's dependencies:

var ctrl = $controller('TodoController', {$scope: scope, notesFactory:mockService});

SpyOn *replaces* the function (?)

spyOn() can only be used when the method already exists on the object`

See: http://www.htmlgoodies.com/html5/javascript/spy-on-javascript-methods-using-the-jasmine-testing-fram...

New Page

Information

Description
A-Level Angular Note on Angular Jasmine notes, created by James Drummond on 13/12/2014.
Created by
James Drummond
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?