test: trim redundant app icon picker mock

Co-authored-by: hyoban <38493346+hyoban@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-18 14:17:15 +00:00
parent e823e09afb
commit d11f075b35

View File

@@ -77,23 +77,6 @@ vi.mock('@/config', () => ({
},
}))
vi.mock('react-easy-crop', () => ({
default: ({ onCropComplete }: { onCropComplete: (_area: Area, croppedAreaPixels: Area) => void }) => (
<div data-testid="mock-cropper">
<button
type="button"
data-testid="trigger-crop"
onClick={() => onCropComplete(
{ x: 0, y: 0, width: 100, height: 100 },
{ x: 0, y: 0, width: 100, height: 100 },
)}
>
Trigger Crop
</button>
</div>
),
}))
vi.mock('@/app/components/base/emoji-picker/Inner', () => ({
default: function MockEmojiPickerInner({ onSelect, className }: { onSelect: (emoji: string, background: string) => void, className?: string }) {
return (