stackdriver: fix failing tests

This commit is contained in:
Erik Sundell 2018-11-19 14:51:52 +01:00
parent 6aaaadac21
commit 795af5deed
2 changed files with 6 additions and 6 deletions

View File

@ -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();

View File

@ -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"