mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
stackdriver: fix failing tests
This commit is contained in:
parent
6aaaadac21
commit
795af5deed
@ -14,7 +14,7 @@ const props: VariableQueryProps = {
|
||||
datasource: {
|
||||
getMetricTypes: async p => [],
|
||||
},
|
||||
templateSrv: { replace: s => s },
|
||||
templateSrv: { replace: s => s, variables: [] },
|
||||
};
|
||||
|
||||
describe('VariableQueryEditor', () => {
|
||||
@ -37,7 +37,7 @@ describe('VariableQueryEditor', () => {
|
||||
it('should trigger new query using the saved query type', done => {
|
||||
props.query = { selectedQueryType: MetricFindQueryTypes.LabelKeys };
|
||||
props.onChange = (query, definition) => {
|
||||
expect(definition).toBe('Stackdriver - Labels Keys');
|
||||
expect(definition).toBe('Stackdriver - Label Keys');
|
||||
done();
|
||||
};
|
||||
renderer.create(<StackdriverVariableQueryEditor {...props} />).toJSON();
|
||||
|
@ -25,14 +25,14 @@ Array [
|
||||
Metric Types
|
||||
</option>
|
||||
<option
|
||||
value="metricLabels"
|
||||
value="labelKeys"
|
||||
>
|
||||
Metric Labels
|
||||
Label Keys
|
||||
</option>
|
||||
<option
|
||||
value="resourceLabels"
|
||||
value="labelValues"
|
||||
>
|
||||
Resource Labels
|
||||
Label Values
|
||||
</option>
|
||||
<option
|
||||
value="resourceTypes"
|
||||
|
Loading…
Reference in New Issue
Block a user