web: components: Moved story for ErrorContainer + added base test
This commit is contained in:
parent
528ab4e899
commit
707f8ef4b6
@ -3,7 +3,8 @@ import { storiesOf } from '@storybook/react'
|
|||||||
import withReadme from 'storybook-readme/with-readme'
|
import withReadme from 'storybook-readme/with-readme'
|
||||||
import Readme from './README.md'
|
import Readme from './README.md'
|
||||||
import { withKnobs, text } from '@storybook/addon-knobs/react';
|
import { withKnobs, text } from '@storybook/addon-knobs/react';
|
||||||
import { Text, ErrorContainer } from 'asc-web-components';
|
import { Text } from '../text';
|
||||||
|
import ErrorContainer from '.';
|
||||||
|
|
||||||
storiesOf('Components| ErrorContainer', module)
|
storiesOf('Components| ErrorContainer', module)
|
||||||
.addDecorator(withKnobs)
|
.addDecorator(withKnobs)
|
@ -0,0 +1,13 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { mount } from 'enzyme';
|
||||||
|
import ErrorContainer from '.';
|
||||||
|
|
||||||
|
describe('<ErrorContainer />', () => {
|
||||||
|
it('renders without error', () => {
|
||||||
|
const wrapper = mount(
|
||||||
|
<ErrorContainer>Some error has happened</ErrorContainer>
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(wrapper).toExist();
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user