mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-23 01:56:52 +03:00
727d753081
* stash * and those * stash * stash * stash * stash * tests * fix errors * revert * stash * fix lint * prettier
24 lines
616 B
TypeScript
24 lines
616 B
TypeScript
import React from 'react';
|
|
import { render } from 'enzyme';
|
|
import { renderToJson } from 'enzyme-to-json';
|
|
import { Toolbar, Divider, Spacer, Button } from '../src';
|
|
|
|
describe('Toolbar', function () {
|
|
it('renders correctly', () => {
|
|
const wrapper = render(
|
|
<Toolbar>
|
|
<Button>1</Button>
|
|
<Divider />
|
|
<Spacer />
|
|
<Button>2</Button>
|
|
</Toolbar>
|
|
);
|
|
expect(renderToJson(wrapper)).toMatchSnapshot();
|
|
});
|
|
|
|
it('renders with props', () => {
|
|
const wrapper = render(<Toolbar borderPosition="top" />);
|
|
expect(renderToJson(wrapper)).toMatchSnapshot();
|
|
});
|
|
});
|