web: components: Moved story for LinkWithDropdown + added base test
This commit is contained in:
parent
7c3cce292e
commit
12970efe95
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { storiesOf } from '@storybook/react';
|
||||
import { LinkWithDropdown } from 'asc-web-components';
|
||||
import LinkWithDropdown from '.';
|
||||
import { Container, Row, Col } from 'reactstrap';
|
||||
|
||||
const rowStyle = {
|
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { storiesOf } from '@storybook/react';
|
||||
import { LinkWithDropdown } from 'asc-web-components';
|
||||
import LinkWithDropdown from '.';
|
||||
import Readme from './README.md';
|
||||
import { text, boolean, withKnobs, select, number } from '@storybook/addon-knobs/react';
|
||||
import withReadme from 'storybook-readme/with-readme';
|
@ -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();
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user