Commit 49a8c2e0 by Tobias Skarhed

Make beautiful

parent c0f9c06f
......@@ -12,18 +12,19 @@ describe('Prometheus editor completer', function() {
function getSessionStub(data) {
return {
getTokenAt:jest.fn(()=> (data.currentToken)),
getTokens:jest.fn(()=> (data.tokens)),
getLine:jest.fn(()=> (data.line)),
getTokenAt: jest.fn(() => data.currentToken),
getTokens: jest.fn(() => data.tokens),
getLine: jest.fn(() => data.line),
};
}
let editor = {};
let backendSrv = <BackendSrv>{}
let datasourceStub = new PrometheusDatasource({},{},backendSrv,{},{});
let backendSrv = <BackendSrv>{};
let datasourceStub = new PrometheusDatasource({}, {}, backendSrv, {}, {});
datasourceStub.performInstantQuery = jest.fn(() => Promise.resolve({
datasourceStub.performInstantQuery = jest.fn(() =>
Promise.resolve({
data: {
data: {
result: [
......@@ -40,7 +41,6 @@ describe('Prometheus editor completer', function() {
);
datasourceStub.performSuggestQuery = jest.fn(() => Promise.resolve(['node_cpu']));
let templateSrv = {
variables: [
{
......
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