Skip to content

Commit

Permalink
feat: add test for class
Browse files Browse the repository at this point in the history
  • Loading branch information
siloneco committed Nov 8, 2023
1 parent 5b74591 commit 441fe7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/ui/Popover/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ describe('ui/Popoverのテスト', () => {
);

expect(screen.getByText(content)).toBeInTheDocument();
expect(screen.getByText(content)).toHaveClass(
'z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2'
);
});

it('not renders content by default', () => {
Expand Down

0 comments on commit 441fe7e

Please sign in to comment.