mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tech(): fixed broken tests due to angularjs upgrade
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user