芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/reactstrap/src/__tests__/NavBrand.spec.js
import React from 'react'; import { shallow } from 'enzyme'; import { NavbarBrand } from '../'; describe('NavbarBrand', () => { it('should render .navbar-brand markup', () => { const wrapper = shallow(
); expect(wrapper.html()).toBe('
'); }); it('should render custom tag', () => { const wrapper = shallow(
); expect(wrapper.html()).toBe('
'); }); it('sholid render children', () => { const wrapper = shallow(
Children
); expect(wrapper.html()).toBe('
Children
'); }); it('should pass additional classNames', () => { const wrapper = shallow(
); expect(wrapper.hasClass('extra')).toBe(true); expect(wrapper.hasClass('navbar-brand')).toBe(true); }); });