Skip to content

Commit

Permalink
fix: code scanning alerts (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Feb 8, 2024
1 parent a1c0a66 commit 7edea91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const MockPortal: React.FC<MockPortalProps> = ({
React.useEffect(() => {
if (open) {
setVisible(true);
} else if (!open && autoDestroy) {
} else if (autoDestroy) {
setVisible(false);
}
}, [open, autoDestroy]);
Expand Down
2 changes: 1 addition & 1 deletion tests/basic.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ describe('Trigger.Basic', () => {
);
}

const { container } = render(<Demo />);
render(<Demo />);

expect(getPopupContainer).toHaveBeenCalled();
});
Expand Down
2 changes: 1 addition & 1 deletion tests/motion.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('Trigger.Motion', () => {
</Trigger>
);

const { container, rerender } = render(renderDemo({ popupVisible: true }));
const { rerender } = render(renderDemo({ popupVisible: true }));
await awaitFakeTimer();

rerender(renderDemo({ popupVisible: false }));
Expand Down

0 comments on commit 7edea91

Please sign in to comment.