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

@@ -12,11 +12,13 @@ describe('ElasticDatasource', function() {
beforeEach(angularMocks.module('grafana.core'));
beforeEach(angularMocks.module('grafana.services'));
beforeEach(ctx.providePhase(['templateSrv', 'backendSrv']));
beforeEach(angularMocks.inject(function($q, $rootScope, $httpBackend, $injector) {
ctx.$q = $q;
ctx.$httpBackend = $httpBackend;
ctx.$rootScope = $rootScope;
ctx.$injector = $injector;
$httpBackend.when('GET', /\.html$/).respond('');
}));
function createDatasource(instanceSettings) {