import React from 'react';
import { shallow } from 'enzyme';
import assert from 'assert';
import WeUI from '../src/index';
const {CellsTitle} = WeUI;
describe('', ()=> {
const text = `cells tips wording`;
const customClassName = 'customClassName1 customClassName2';
const wrapper = shallow(
{text}
);
it(`should have 'weui-cells_title' class name`, ()=>{
assert(wrapper.hasClass(`weui-cells__title`));
});
it(`should have custom class name ${customClassName}`, ()=> {
assert(wrapper.hasClass(customClassName));
});
it(`should have text ${text}`, ()=>{
assert(wrapper.text() === text);
});
});