mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 08:05:43 -06:00
fixing test
This commit is contained in:
parent
025d37e9a2
commit
609129c039
@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
|
|
||||||
import { ValueMappingsEditor, Props } from './ValueMappingsEditor';
|
import { ValueMappingsEditor, Props } from './ValueMappingsEditor';
|
||||||
import { MappingType } from '../../types/panel';
|
import { MappingType } from '../../types';
|
||||||
|
|
||||||
const setup = (propOverrides?: object) => {
|
const setup = (propOverrides?: object) => {
|
||||||
const props: Props = {
|
const props: Props = {
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
exports[`Render should render component 1`] = `
|
exports[`Render should render component 1`] = `
|
||||||
<Component
|
<Component
|
||||||
title="Value Mappings"
|
onAdd={[Function]}
|
||||||
|
title="Add mapping"
|
||||||
>
|
>
|
||||||
<div>
|
|
||||||
<MappingRow
|
<MappingRow
|
||||||
key="Ok-0"
|
key="Ok-0"
|
||||||
removeValueMapping={[Function]}
|
removeValueMapping={[Function]}
|
||||||
@ -34,23 +34,5 @@ exports[`Render should render component 1`] = `
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
className="add-mapping-row"
|
|
||||||
onClick={[Function]}
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
className="add-mapping-row-icon"
|
|
||||||
>
|
|
||||||
<i
|
|
||||||
className="fa fa-plus"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
className="add-mapping-row-label"
|
|
||||||
>
|
|
||||||
Add mapping
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</Component>
|
</Component>
|
||||||
`;
|
`;
|
||||||
|
Loading…
Reference in New Issue
Block a user