¡GoConqr estrena diseño! Cuéntanos qué te parece.

Apuntes

Angular Jasmine notes

James Drummond Angular A-Level Inglés 1 página

Contenido del apunte (1)

Página 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

Información

Descripción
A-Level Angular Apunte sobre Angular Jasmine notes, creado por James Drummond el 13/12/2014.
Creado por
James Drummond
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?