web: components: Moved story for Label + added base test
This commit is contained in:
parent
d1e054f0dc
commit
fce2be3a31
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { storiesOf } from '@storybook/react';
|
||||
import { text, boolean, withKnobs } from '@storybook/addon-knobs/react';
|
||||
import { Label } from 'asc-web-components';
|
||||
import Label from '.';
|
||||
import Section from '../../../.storybook/decorators/section';
|
||||
import withReadme from 'storybook-readme/with-readme';
|
||||
import Readme from './README.md';
|
18
web/ASC.Web.Components/src/components/label/lebel.test.js
Normal file
18
web/ASC.Web.Components/src/components/label/lebel.test.js
Normal file
@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import { mount } from 'enzyme';
|
||||
import Label from '.';
|
||||
|
||||
describe('<IconButton />', () => {
|
||||
it('renders without error', () => {
|
||||
const wrapper = mount(
|
||||
<Label
|
||||
text="First name:"
|
||||
title={"first name"}
|
||||
htmlFor="firstNameField"
|
||||
display="block"
|
||||
/>
|
||||
);
|
||||
|
||||
expect(wrapper).toExist();
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user