Commit a4e5b7ea by Mitsuhiro Tanda

fix cloudwatch test error

parent a20443b5
...@@ -2,7 +2,7 @@ import "../datasource"; ...@@ -2,7 +2,7 @@ import "../datasource";
import {describe, beforeEach, it, sinon, expect, angularMocks} from 'test/lib/common'; import {describe, beforeEach, it, sinon, expect, angularMocks} from 'test/lib/common';
import moment from 'moment'; import moment from 'moment';
import helpers from 'test/specs/helpers'; import helpers from 'test/specs/helpers';
import Datasource from "../datasource"; import {CloudWatchDatasource} from "../datasource";
import CloudWatchAnnotationQuery from '../annotation_query'; import CloudWatchAnnotationQuery from '../annotation_query';
describe('CloudWatchAnnotationQuery', function() { describe('CloudWatchAnnotationQuery', function() {
...@@ -20,7 +20,7 @@ describe('CloudWatchAnnotationQuery', function() { ...@@ -20,7 +20,7 @@ describe('CloudWatchAnnotationQuery', function() {
ctx.$q = $q; ctx.$q = $q;
ctx.$httpBackend = $httpBackend; ctx.$httpBackend = $httpBackend;
ctx.$rootScope = $rootScope; ctx.$rootScope = $rootScope;
ctx.ds = $injector.instantiate(Datasource, {instanceSettings: instanceSettings}); ctx.ds = $injector.instantiate(CloudWatchDatasource, {instanceSettings: instanceSettings});
})); }));
describe('When performing annotationQuery', function() { describe('When performing annotationQuery', function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment