When I try to inject $location service in unit test (qunit) I get error: Unknown $rootElementProvider <- $rootElement <- $location
Other things without $location service dependency are injected correctly.
var $injector = angular.injector(['ng', 'myApp']);
var $location = $injector.get('$location');
source: http://jsfiddle.net/H4qGb/5/
One more strange error happens in the second test.
Does anybody know how to integrate angular with qunit best way?