Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('renders correctly', () => {
const wrapper = render(
);
expect(renderToJson(wrapper)).toMatchSnapshot();
});
});
it('renders menu correctly', () => {
const wrapper = render(createMenu());
expect(renderToJson(wrapper)).toMatchSnapshot();
});
});
it('renders correctly', () => {
const wrapper = render(
);
expect(renderToJson(wrapper)).toMatchSnapshot();
});
});
it('renders correctly', () => {
const wrapper = render(
sidebar<p></p>}>
<p>React Sidebar is a sidebar component for React.</p>
);
expect(renderToJson(wrapper)).toMatchSnapshot();
expect(wrapper.find('.forTest').length === 1).toBe(true);
});
it('should generate test for the last action when selectedActionId not specified', () => {
const component = render(
);
expect(renderToJson(component)).toMatchSnapshot();
});
it(`${mode} menu with rtl direction correctly`, () => {
const wrapper = mount(createMenu({ mode, direction: 'rtl' }));
expect(renderToJson(render(wrapper))).toMatchSnapshot();
expect(
wrapper
.find('ul')
.first()
.props().className,
).toContain('-rtl');
});
});
it('base.', () => {
const wrapper = render(
);
expect(renderToJson(wrapper)).toMatchSnapshot();
});