Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
49a8c2e0
Commit
49a8c2e0
authored
Jun 29, 2018
by
Tobias Skarhed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make beautiful
parent
c0f9c06f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
public/app/plugins/datasource/prometheus/specs/completer.jest.ts
+20
-20
No files found.
public/app/plugins/datasource/prometheus/specs/completer.jest.ts
View file @
49a8c2e0
...
@@ -12,35 +12,35 @@ describe('Prometheus editor completer', function() {
...
@@ -12,35 +12,35 @@ describe('Prometheus editor completer', function() {
function
getSessionStub
(
data
)
{
function
getSessionStub
(
data
)
{
return
{
return
{
getTokenAt
:
jest
.
fn
(()
=>
(
data
.
currentToken
)
),
getTokenAt
:
jest
.
fn
(()
=>
data
.
currentToken
),
getTokens
:
jest
.
fn
(()
=>
(
data
.
tokens
)
),
getTokens
:
jest
.
fn
(()
=>
data
.
tokens
),
getLine
:
jest
.
fn
(()
=>
(
data
.
line
)
),
getLine
:
jest
.
fn
(()
=>
data
.
line
),
};
};
}
}
let
editor
=
{};
let
editor
=
{};
let
backendSrv
=
<
BackendSrv
>
{}
let
backendSrv
=
<
BackendSrv
>
{};
let
datasourceStub
=
new
PrometheusDatasource
({},{},
backendSrv
,{},{});
let
datasourceStub
=
new
PrometheusDatasource
({},
{},
backendSrv
,
{},
{});
datasourceStub
.
performInstantQuery
=
jest
.
fn
(()
=>
Promise
.
resolve
({
datasourceStub
.
performInstantQuery
=
jest
.
fn
(()
=>
data
:
{
Promise
.
resolve
({
data
:
{
data
:
{
result
:
[
data
:
{
{
result
:
[
metric
:
{
{
job
:
'node'
,
metric
:
{
instance
:
'localhost:9100'
,
job
:
'node'
,
},
instance
:
'localhost:9100'
,
},
],
},
},
},
},
})
],
);
},
},
})
);
datasourceStub
.
performSuggestQuery
=
jest
.
fn
(()
=>
Promise
.
resolve
([
'node_cpu'
]));
datasourceStub
.
performSuggestQuery
=
jest
.
fn
(()
=>
Promise
.
resolve
([
'node_cpu'
]));
let
templateSrv
=
{
let
templateSrv
=
{
variables
:
[
variables
:
[
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment