parvus-ui
Version:
A micro UI kit with all the main UI components in less than 5KB
17 lines (13 loc) • 449 B
JavaScript
import React from 'react';
import { mount, configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import { BreadcrumbItem } from '../../src/breadcrumb';
configure({ adapter: new Adapter() });
describe('<BreadcrumbItem />', () => {
const wrapper = mount(
<BreadcrumbItem>Test</BreadcrumbItem>
);
it('Should render breadcrumb item with the defined text', () => {
expect(wrapper.text()).toEqual('Test');
});
});