Skip to content

Commit

Permalink
Cleanup Expensicons mock
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Sep 15, 2022
1 parent 1836742 commit c350685
Showing 1 changed file with 5 additions and 88 deletions.
93 changes: 5 additions & 88 deletions jest/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,91 +58,8 @@ mockImages('images');
mockImages('images/avatars');
mockImages('images/bankicons');
mockImages('images/product-illustrations');
jest.mock('../src/components/Icon/Expensicons', () => ({
ActiveRoomAvatar: () => '',
AdminRoomAvatar: () => '',
Android: () => '',
AnnounceRoomAvatar: () => '',
Apple: () => '',
ArrowRight: () => '',
BackArrow: () => '',
Bank: () => '',
Bill: () => '',
Bolt: () => '',
Briefcase: () => '',
Bug: () => '',
Building: () => '',
Camera: () => '',
Cash: () => '',
ChatBubble: () => '',
Checkmark: () => '',
CircleHourglass: () => '',
Clipboard: () => '',
Close: () => '',
ClosedSign: () => '',
Collapse: () => '',
Concierge: () => '',
Connect: () => '',
CreditCard: () => '',
DeletedRoomAvatar: () => '',
DomainRoomAvatar: () => '',
DotIndicator: () => '',
DownArrow: () => '',
Download: () => '',
Emoji: () => '',
Exclamation: () => '',
Exit: () => '',
ExpensifyCard: () => '',
Expand: () => '',
Eye: () => '',
EyeDisabled: () => '',
FallbackAvatar: () => '',
FallbackWorkspaceAvatar: () => '',
Gallery: () => '',
Gear: () => '',
Hashtag: () => '',
ImageCropMask: () => '',
Info: () => '',
Invoice: () => '',
Key: () => '',
Keyboard: () => '',
Link: () => '',
LinkCopy: () => '',
Lock: () => '',
Luggage: () => '',
MagnifyingGlass: () => '',
Mail: () => '',
MoneyBag: () => '',
MoneyCircle: () => '',
Monitor: () => '',
NewWindow: () => '',
NewWorkspace: () => '',
Offline: () => '',
OfflineCloud: () => '',
Paperclip: () => '',
PayPal: () => '',
Paycheck: () => '',
Pencil: () => '',
Phone: () => '',
Pin: () => '',
PinCircle: () => '',
Plus: () => '',
Printer: () => '',
Profile: () => '',
QuestionMark: () => '',
Receipt: () => '',
ReceiptSearch: () => '',
Rotate: () => '',
RotateLeft: () => '',
Send: () => '',
Sync: () => '',
ThreeDots: () => '',
Transfer: () => '',
Trashcan: () => '',
UpArrow: () => '',
Upload: () => '',
Users: () => '',
Wallet: () => '',
Workspace: () => '',
Zoom: () => '',
}));
jest.mock('../src/components/Icon/Expensicons', () => {
const reduce = require('underscore').reduce;
const Expensicons = jest.requireActual('../src/components/Icon/Expensicons');
return reduce(Expensicons, (prev, _curr, key) => ({...prev, [key]: () => ''}), {});
});

0 comments on commit c350685

Please sign in to comment.