When I try to enter $ location service in unit test (qunit), I get the error: Unknown $ rootElementProvider <- $ rootElement <- $ location
Other things, regardless of location service, are entered correctly.
var $injector = angular.injector(['ng', 'myApp']); var $location = $injector.get('$location');
source: http://jsfiddle.net/H4qGb/5/
Another strange error occurs in the second test.
Does anyone know how to integrate angular with the best qunit way?
source share