浏览代码

remove unnecessary spy

thatsparesh 6 年之前
父节点
当前提交
716db35fae
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/test/specs/helpers.ts

+ 1 - 1
public/test/specs/helpers.ts

@@ -143,7 +143,7 @@ export function DashboardViewStateStub(this: any) {
 }
 }
 
 
 export function TimeSrvStub(this: any) {
 export function TimeSrvStub(this: any) {
-  this.init = sinon.spy();
+  this.init = () => {};
   this.time = { from: 'now-1h', to: 'now' };
   this.time = { from: 'now-1h', to: 'now' };
   this.timeRange = function(parse) {
   this.timeRange = function(parse) {
     if (parse === false) {
     if (parse === false) {