2019-04-05 02:23:40 +07:00
|
|
|
import React from 'react';
|
2019-10-08 03:19:18 +07:00
|
|
|
|
2019-11-23 19:41:14 +07:00
|
|
|
import { render } from '../../utils/test-react-testing-library';
|
2019-04-05 02:23:40 +07:00
|
|
|
|
2019-11-23 19:41:14 +07:00
|
|
|
import NoItems from './NoItems';
|
2019-04-05 02:23:40 +07:00
|
|
|
|
|
|
|
describe('<NoItem /> component', () => {
|
2019-06-20 19:37:28 +07:00
|
|
|
const props = {
|
|
|
|
text: 'test',
|
|
|
|
};
|
|
|
|
|
2019-04-05 02:23:40 +07:00
|
|
|
test('should load the component in default state', () => {
|
2019-11-23 19:41:14 +07:00
|
|
|
const { container } = render(<NoItems text={props.text} />);
|
|
|
|
expect(container.firstChild).toMatchSnapshot();
|
2019-04-05 02:23:40 +07:00
|
|
|
});
|
|
|
|
});
|