Skip to content

Commit 84404bd

Browse files
committed
fix tests
1 parent ad4ce2d commit 84404bd

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

packages/extension-chakra-storefront/src/pages/product-list/metadata.test.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,10 @@ import Metadata from './metadata'
1111

1212
jest.mock('../../components/seo', () => {
1313
return function MockSeo(props) {
14-
// Extract non-DOM props before spreading
15-
const { metaTags, title, description, keywords, ...domProps } = props
16-
17-
return (
18-
<div
19-
data-testid="seo"
20-
title={title}
21-
description={description}
22-
keywords={keywords}
23-
{...domProps}
24-
/>
25-
)
14+
// eslint-disable-next-line react/prop-types
15+
const {metaTags, ...domProps} = props
16+
17+
return <div data-testid="seo" {...domProps} />
2618
}
2719
})
2820

0 commit comments

Comments
 (0)