You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
634 B
29 lines
634 B
import React from 'react';
|
|
import { render } from '../../../tests/utils';
|
|
import Breadcrumb from '../index';
|
|
|
|
describe('Breadcrumb.ItemRender', () => {
|
|
it('render as expect', () => {
|
|
const { container } = render(
|
|
<Breadcrumb
|
|
items={[
|
|
{
|
|
path: '/',
|
|
title: 'Home',
|
|
},
|
|
{
|
|
path: '/bamboo',
|
|
title: 'Bamboo',
|
|
},
|
|
]}
|
|
itemRender={(route) => (
|
|
<a className="my-link" data-path={route.path}>
|
|
{route.title}
|
|
</a>
|
|
)}
|
|
/>,
|
|
);
|
|
|
|
expect(container).toMatchSnapshot();
|
|
});
|
|
});
|
|
|