mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore(loki): remove any from config editor test (#53475)
This commit is contained in:
@@ -92,7 +92,7 @@ exports[`no enzyme tests`] = {
|
||||
"public/app/plugins/datasource/loki/components/LokiQueryEditor.test.tsx:146069464": [
|
||||
[0, 19, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/loki/configuration/ConfigEditor.test.tsx:3658171175": [
|
||||
"public/app/plugins/datasource/loki/configuration/ConfigEditor.test.tsx:2659566901": [
|
||||
[0, 17, 13, "RegExp match", "2409514259"]
|
||||
],
|
||||
"public/app/plugins/datasource/loki/configuration/DebugSection.test.tsx:1551927716": [
|
||||
@@ -7312,9 +7312,6 @@ exports[`better eslint`] = {
|
||||
[0, 0, 0, "Do not use any type assertions.", "1"],
|
||||
[0, 0, 0, "Do not use any type assertions.", "2"]
|
||||
],
|
||||
"public/app/plugins/datasource/loki/configuration/ConfigEditor.test.tsx:5381": [
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "0"]
|
||||
],
|
||||
"public/app/plugins/datasource/loki/configuration/ConfigEditor.tsx:5381": [
|
||||
[0, 0, 0, "Unexpected any. Specify a different type.", "0"]
|
||||
],
|
||||
|
||||
@@ -24,7 +24,7 @@ describe('ConfigEditor', () => {
|
||||
const onChangeMock = jest.fn();
|
||||
const wrapper = mount(<ConfigEditor onOptionsChange={onChangeMock} options={createDefaultConfigOptions()} />);
|
||||
const inputWrapper = wrapper.find({ label: 'Maximum lines' }).find('input');
|
||||
(inputWrapper.getDOMNode() as any).value = 42;
|
||||
inputWrapper.getDOMNode<HTMLInputElement>().value = '42';
|
||||
inputWrapper.simulate('change');
|
||||
expect(onChangeMock.mock.calls[0][0].jsonData.maxLines).toBe('42');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user