tech(): fixed broken tests due to angularjs upgrade

This commit is contained in:
Torkel Ödegaard
2016-03-28 20:44:32 +02:00
parent 70b66382eb
commit 82ad5a632d
7 changed files with 11 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ function () {
var rootScope;
beforeEach(module('grafana.core'));
beforeEach(inject(function($controller, $rootScope, $q) {
beforeEach(inject(function($controller, $rootScope, $q, $httpBackend) {
rootScope = $rootScope;
scope = $rootScope.$new();
ctrl = $controller('ValueSelectDropdownCtrl', {$scope: scope});
@@ -19,6 +19,7 @@ function () {
return $q.when(tagValuesMap[obj.tagKey]);
};
ctrl.onUpdated = sinon.spy();
$httpBackend.when('GET', /\.html$/).respond('');
}));
describe("Given simple variable", function() {