Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Nov 12, 2024
1 parent 2ac6955 commit 4d3c6d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/frameworks/nextjs/template/stories/Head.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export const Default: StoryObj<typeof Component> = {
play: async () => {
await waitFor(() => expect(document.title).toEqual('Next.js Head Title'));
await expect(document.querySelectorAll('meta[property="og:title"]')).toHaveLength(1);
await expect(document.querySelector('meta[property="og:title"]').content).toEqual(
'My new title'
);
await expect(
(document.querySelector('meta[property="og:title"]') as HTMLMetaElement)?.content
).toEqual('My new title');
},
};

0 comments on commit 4d3c6d9

Please sign in to comment.