web: components: Moved story for ErrorContainer + added base test

This commit is contained in:
Alexey Safronov 2019-09-07 13:46:04 +03:00
parent 528ab4e899
commit 707f8ef4b6
3 changed files with 15 additions and 1 deletions

View File

@ -3,7 +3,8 @@ import { storiesOf } from '@storybook/react'
import withReadme from 'storybook-readme/with-readme'
import Readme from './README.md'
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)
.addDecorator(withKnobs)

View File

@ -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();
});
});