import { describe , beforeEach , it , sinon , expect } from './lib/common' ; import { DruidQueryCtrl } from '../src/query_ctrl' ; import TemplateSrvStub from './lib/template_srv_stub' ; import Q from 'q' ; import moment from 'moment' ; describe ( 'ChangeMyNameQueryCtrl' , function ( ) { let queryCtrl ; beforeEach ( function ( ) { queryCtrl = new DruidQueryCtrl ( { } , { } , new TemplateSrvStub ( ) ) ; queryCtrl . datasource = { $q : Q } ; } ) ; describe ( 'init query_ctrl variables' , function ( ) { it ( 'defaults should be initialized' , function ( ) { expect ( queryCtrl . target . target ) . to . be ( '' ) ; } ) ; } ) ; } ) ;