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
b262be73
Commit
b262be73
authored
Nov 09, 2018
by
Erik Sundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stackdriver: fix failing tests
parent
45f49c2e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.test.tsx
+1
-2
public/app/plugins/datasource/stackdriver/components/__snapshots__/TemplateQueryComponent.test.tsx.snap
+20
-7
No files found.
public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.test.tsx
View file @
b262be73
...
...
@@ -5,7 +5,6 @@ import { TemplateQueryProps } from 'app/types/plugins';
jest
.
mock
(
'../functions'
,
()
=>
({
getMetricTypes
:
async
()
=>
({
metricTypes
:
[],
selectedMetricType
:
''
}),
extractServicesFromMetricDescriptors
:
m
=>
m
,
}));
const
props
:
TemplateQueryProps
=
{
...
...
@@ -24,7 +23,7 @@ describe('StackdriverTemplateQueryComponent', () => {
it
(
'should use the first query type in the array if no query type was saved before'
,
done
=>
{
props
.
onChange
=
(
query
,
definition
)
=>
{
expect
(
definition
).
toBe
(
'Stackdriver -
Servic
es'
);
expect
(
definition
).
toBe
(
'Stackdriver -
Metric Typ
es'
);
done
();
};
renderer
.
create
(<
StackdriverTemplateQueryComponent
{
...
props
}
/>).
toJSON
();
...
...
public/app/plugins/datasource/stackdriver/components/__snapshots__/TemplateQueryComponent.test.tsx.snap
View file @
b262be73
...
...
@@ -17,14 +17,9 @@ Array [
className="gf-form-input"
onChange={[Function]}
required={true}
value="
servic
es"
value="
metricTyp
es"
>
<option
value="services"
>
Services
</option>
<option
value="metricTypes"
>
Metric Types
...
...
@@ -62,6 +57,24 @@ Array [
</select>
</div>
</div>,
"",
<div
className="gf-form max-width-21"
>
<span
className="gf-form-label width-10"
>
Services
</span>
<div
className="gf-form-select-wrapper max-width-10"
>
<select
className="gf-form-input"
onChange={[Function]}
required={true}
value=""
/>
</div>
</div>,
]
`;
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