Skip to content

Commit

Permalink
feat: update test code
Browse files Browse the repository at this point in the history
  • Loading branch information
bysxx committed Jan 26, 2024
1 parent 09c9a4e commit 20be6bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/common/components/ui/global-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function GlobalNav() {
return (
<nav className="sticky top-0 grid h-16 w-full grid-cols-2 items-center justify-center bg-[hsla(0,0%,100%,.8)] px-8 py-4 shadow-bottom backdrop-blur-sm backdrop-saturate-150">
<div className="flex justify-start text-2xl text-gray-900">
<Link href="/">Next 13</Link>
<Link href="/">Next 14</Link>
</div>

<div className="flex justify-end gap-x-2 text-gray-500">
Expand Down
1 change: 1 addition & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@testing-library/jest-dom';
2 changes: 1 addition & 1 deletion test/components/global-nav.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('Navbar Test', () => {
</Wrapper>,
);

expect(await screen.findByText(/Next 13/)).toBeInTheDocument();
expect(await screen.findByText(/Next 14/)).toBeInTheDocument();
expect(await screen.findByText(/Example/)).toBeInTheDocument();
});
});

1 comment on commit 20be6bf

@vercel
Copy link

@vercel vercel bot commented on 20be6bf Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.