bee-form
Version:
Form ui component for react
15 lines (14 loc) • 490 B
JavaScript
import React from 'react';
import {shallow, mount, render} from 'enzyme';
import {expect} from 'chai';
import Form from '../src/index';
describe('Form test', function() {
it('Form inline should be exist', function() {
let form = shallow(<Form inline/>);
expect(form.hasClass('u-form-inline')).to.equal(true);
})
it('Form inline should be exist', function() {
let form = shallow(<Form horizontal/>);
expect(form.hasClass('u-form-horizontal')).to.equal(true);
})
})