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

This commit is contained in:
Alexey Safronov 2019-09-08 17:30:16 +03:00
parent 7c3cce292e
commit 12970efe95
4 changed files with 15 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { storiesOf } from '@storybook/react'; import { storiesOf } from '@storybook/react';
import { LinkWithDropdown } from 'asc-web-components'; import LinkWithDropdown from '.';
import { Container, Row, Col } from 'reactstrap'; import { Container, Row, Col } from 'reactstrap';
const rowStyle = { const rowStyle = {

View File

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { storiesOf } from '@storybook/react'; import { storiesOf } from '@storybook/react';
import { LinkWithDropdown } from 'asc-web-components'; import LinkWithDropdown from '.';
import Readme from './README.md'; import Readme from './README.md';
import { text, boolean, withKnobs, select, number } from '@storybook/addon-knobs/react'; import { text, boolean, withKnobs, select, number } from '@storybook/addon-knobs/react';
import withReadme from 'storybook-readme/with-readme'; import withReadme from 'storybook-readme/with-readme';

View File

@ -0,0 +1,13 @@
import React from 'react';
import { mount } from 'enzyme';
import LinkWithDropdown from '.';
describe('<LinkWithDropdown />', () => {
it('renders without error', () => {
const wrapper = mount(
<LinkWithDropdown color = "black" isBold = {true} data={[]}>Link with dropdown</LinkWithDropdown>
);
expect(wrapper).toExist();
});
});