1 | import React from 'react';
|
2 | import {shallow, mount, render} from 'enzyme';
|
3 | import {expect} from 'chai';
|
4 | import Form from '../src/index';
|
5 |
|
6 | describe('Form test', function() {
|
7 | it('Form inline should be exist', function() {
|
8 | let form = shallow(<Form inline/>);
|
9 | expect(form.hasClass('u-form-inline')).to.equal(true);
|
10 | })
|
11 | it('Form inline should be exist', function() {
|
12 | let form = shallow(<Form horizontal/>);
|
13 | expect(form.hasClass('u-form-horizontal')).to.equal(true);
|
14 | })
|
15 | }) |
\ | No newline at end of file |