Commit ce9b25a5 by Tobias Skarhed

Remove comments

parent b58a7642
import { uiSegmentSrv } from 'app/core/services/segment_srv'; import { uiSegmentSrv } from 'app/core/services/segment_srv';
// import { describe, beforeEach, it, sinon, expect, angularMocks } from 'test/lib/common';
import gfunc from '../gfunc'; import gfunc from '../gfunc';
// import helpers from 'test/specs/helpers';
import { GraphiteQueryCtrl } from '../query_ctrl'; import { GraphiteQueryCtrl } from '../query_ctrl';
describe('GraphiteQueryCtrl', () => { describe('GraphiteQueryCtrl', () => {
...@@ -24,47 +21,6 @@ describe('GraphiteQueryCtrl', () => { ...@@ -24,47 +21,6 @@ describe('GraphiteQueryCtrl', () => {
targets: [ctx.target], targets: [ctx.target],
}; };
// beforeEach(angularMocks.module('grafana.core'));
// beforeEach(angularMocks.module('grafana.controllers'));
// beforeEach(angularMocks.module('grafana.services'));
// beforeEach(
// angularMocks.module(function($compileProvider) {
// $compileProvider.preAssignBindingsEnabled(true);
// })
// );
//beforeEach(ctx.providePhase());
// beforeEach(
// angularMocks.inject(($rootScope, $controller, $q) => {
// ctx.$q = $q;
// ctx.scope = $rootScope.$new();
// ctx.target = { target: 'aliasByNode(scaleToSeconds(test.prod.*,1),2)' };
// ctx.datasource.metricFindQuery = sinon.stub().returns(ctx.$q.when([]));
// ctx.datasource.getFuncDefs = sinon.stub().returns(ctx.$q.when(gfunc.getFuncDefs('1.0')));
// ctx.datasource.getFuncDef = gfunc.getFuncDef;
// ctx.datasource.waitForFuncDefsLoaded = sinon.stub().returns(ctx.$q.when(null));
// ctx.datasource.createFuncInstance = gfunc.createFuncInstance;
// ctx.panelCtrl = { panel: {} };
// ctx.panelCtrl = {
// panel: {
// targets: [ctx.target],
// },
// };
// ctx.panelCtrl.refresh = sinon.spy();
// ctx.ctrl = $controller(
// GraphiteQueryCtrl,
// { $scope: ctx.scope },
// {
// panelCtrl: ctx.panelCtrl,
// datasource: ctx.datasource,
// target: ctx.target,
// }
// );
// ctx.scope.$digest();
// })
// );
beforeEach(() => { beforeEach(() => {
GraphiteQueryCtrl.prototype.target = ctx.target; GraphiteQueryCtrl.prototype.target = ctx.target;
GraphiteQueryCtrl.prototype.datasource = ctx.datasource; GraphiteQueryCtrl.prototype.datasource = ctx.datasource;
......
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