mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-24 15:46:10 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
31 lines
635 B
TypeScript
31 lines
635 B
TypeScript
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();
|
|
});
|
|
});
|