1 | import React from 'react';
|
2 | import {shallow, mount, render} from 'enzyme';
|
3 | import {expect} from 'chai';
|
4 | import Checkbox from '../src/index';
|
5 |
|
6 | describe('Checkbox should be exist', function() {
|
7 | it('Checkbox should be exist', function() {
|
8 | let checkbox = shallow(<Checkbox/>);
|
9 | expect(checkbox.hasClass('u-checkbox')).to.equal(true);
|
10 | })
|
11 | it('Checkbox info should be exist', function() {
|
12 | let checkbox = shallow(<Checkbox colors="info"/>);
|
13 | expect(checkbox.hasClass('u-checkbox-info')).to.equal(true);
|
14 | })
|
15 | it('Checkbox danger should be exist', function() {
|
16 | let checkbox = shallow(<Checkbox colors="danger"/>);
|
17 | expect(checkbox.hasClass('u-checkbox-danger')).to.equal(true);
|
18 | })
|
19 | it('Checkbox warning should be exist', function() {
|
20 | let checkbox = shallow(<Checkbox colors="warning"/>);
|
21 | expect(checkbox.hasClass('u-checkbox-warning')).to.equal(true);
|
22 | })
|
23 | it('Checkbox success should be exist', function() {
|
24 | let checkbox = shallow(<Checkbox colors="success"/>);
|
25 | expect(checkbox.hasClass('u-checkbox-success')).to.equal(true);
|
26 | })
|
27 | it('Checkbox dark should be exist', function() {
|
28 | let checkbox = shallow(<Checkbox colors="dark"/>);
|
29 | expect(checkbox.hasClass('u-checkbox-dark')).to.equal(true);
|
30 | })
|
31 | }) |
\ | No newline at end of file |