Skip to content

Commit

Permalink
[Index Management] Fix duped mock (#155844)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabarasaba authored Apr 26, 2023
1 parent d8a1706 commit 207c23e
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,6 @@ jest.mock('@elastic/eui', () => {
};
});

jest.mock('@kbn/kibana-react-plugin/public', () => {
const original = jest.requireActual('@kbn/kibana-react-plugin/public');
return {
...original,
// Mocking CodeEditor, which uses React Monaco under the hood
CodeEditor: (props: any) => (
<input
data-test-subj={props['data-test-subj'] || 'mockCodeEditor'}
data-currentvalue={props.value}
onChange={(e: any) => {
props.onChange(e.jsonContent);
}}
/>
),
};
});

describe('<ComponentTemplateCreate />', () => {
let testBed: ComponentTemplateCreateTestBed;

Expand Down

0 comments on commit 207c23e

Please sign in to comment.