Skip to content
This repository was archived by the owner on Mar 26, 2022. It is now read-only.

Commit 78ba6e4

Browse files
committed
use shallow over mount
1 parent 1698f37 commit 78ba6e4

File tree

2 files changed

+5
-650
lines changed

2 files changed

+5
-650
lines changed

src/markdown/src/components/MarkdownEditor.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import toJson from 'enzyme-to-json';
2-
import { mount } from 'enzyme';
2+
import { shallow } from 'enzyme';
33

44
import MarkdownEditor from './MarkdownEditor';
55

66
describe('MarkdownEditor', () => {
77

88
test('render matches snapshot', () => {
9-
const wrapper = mount(<MarkdownEditor />);
9+
const wrapper = shallow(<MarkdownEditor />);
1010
expect(toJson(wrapper)).toMatchSnapshot();
1111
});
1212

0 commit comments

Comments
 (0)