浏览代码

prom: fixes broken test

bergquist 8 年之前
父节点
当前提交
1f9e2ef6ec
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      public/app/plugins/datasource/prometheus/specs/completer_specs.ts

+ 2 - 2
public/app/plugins/datasource/prometheus/specs/completer_specs.ts

@@ -50,8 +50,8 @@ describe('Prometheus editor completer', function() {
       });
 
       return completer.getCompletions(editor, session, { row: 0, column: 10 }, '[', (s, res) => {
-        expect(res[0].caption).to.eql('1s');
-        expect(res[0].value).to.eql('[1s');
+        expect(res[0].caption).to.eql('$__interval');
+        expect(res[0].value).to.eql('[$__interval');
         expect(res[0].meta).to.eql('range vector');
       });
     });