소스 검색

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');
       });
     });