UNPKG

490 BJavaScriptView Raw
1import React from 'react';
2import {shallow, mount, render} from 'enzyme';
3import {expect} from 'chai';
4import Form from '../src/index';
5
6describe('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