Unit test angular controller with JsTestDriver
http://www.angularjsrecipes.com/recipes/7072626/how-to-test-angular-controller-with-jstestdriver
♨ Daily Geek News Here @dailygeeknews
#Unit #test #angular #controller #with #JsTestDriver
http://www.angularjsrecipes.com/recipes/7072626/how-to-test-angular-controller-with-jstestdriver
♨ Daily Geek News Here @dailygeeknews
#Unit #test #angular #controller #with #JsTestDriver
Angularjsrecipes
[SOLVED] How to test angular controller with JsTestDriver?- Angular.js Recipes
From http://docs.angularjs.org/#!/tutorial/step_05
scope = angular.scope();
$browser = scope.$service('$browser');
$browser.xhr.expectGET('phones/phones.json')
.respond([{name: 'Nexus S'},
{name: 'Motorola DROID'}]);
ctrl = scope.$new…
scope = angular.scope();
$browser = scope.$service('$browser');
$browser.xhr.expectGET('phones/phones.json')
.respond([{name: 'Nexus S'},
{name: 'Motorola DROID'}]);
ctrl = scope.$new…