Skip to content

Commit 8de5271

Browse files
committed
Fix breadcrumb tests
1 parent 690b6cf commit 8de5271

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

polaris-react/src/components/Page/components/Header/tests/Header.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ describe('<Header />', () => {
6767
url: 'https://www.google.com',
6868
};
6969
const header = mountWithApp(
70-
<Header {...mockProps} breadcrumbs={breadcrumb} />,
70+
<Header {...mockProps} breadcrumb={breadcrumb} />,
7171
);
7272
expect(header).toContainReactComponent(Breadcrumbs, {
73-
breadcrumbs: breadcrumb,
73+
breadcrumb,
7474
});
7575
});
7676

polaris-react/src/components/Page/tests/Page.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,12 @@ describe('<Page />', () => {
247247
});
248248

249249
it('renders a <Header /> when defined not as an array', () => {
250-
const breadcrumbs = {
250+
const breadcrumb = {
251251
content: 'Products',
252252
onAction: noop,
253253
};
254254
const page = mountWithApp(
255-
<Page {...mockProps} breadcrumbs={breadcrumbs} />,
255+
<Page {...mockProps} breadcrumb={breadcrumb} />,
256256
);
257257
expect(page).toContainReactComponent(Header);
258258
});

0 commit comments

Comments
 (0)