|
|
@ -11,7 +11,9 @@ describe('Breadcrumb', () => {
|
|
|
|
<MyCom />
|
|
|
|
<MyCom />
|
|
|
|
</Breadcrumb>
|
|
|
|
</Breadcrumb>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
// eslint-disable-next-line
|
|
|
|
expect(console.error.calls.count()).toBe(1);
|
|
|
|
expect(console.error.calls.count()).toBe(1);
|
|
|
|
|
|
|
|
// eslint-disable-next-line
|
|
|
|
expect(console.error.calls.argsFor(0)[0]).toContain(
|
|
|
|
expect(console.error.calls.argsFor(0)[0]).toContain(
|
|
|
|
'Breadcrumb only accetps Breadcrumb.Item as it\'s children'
|
|
|
|
'Breadcrumb only accetps Breadcrumb.Item as it\'s children'
|
|
|
|
);
|
|
|
|
);
|
|
|
|