We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62cd162 commit d0dee92Copy full SHA for d0dee92
packages/snaps-utils/src/ui.test.tsx
@@ -843,15 +843,16 @@ describe('validateJsxElements', () => {
843
<Link href="https://foo.bar">Bar</Link>
844
</Text>
845
</Box>,
846
- ])('does not throw for a safe JSX text component', async (element) => {
+ <Image src="https://metamask.io/foo.png" />,
847
+ ])('does not throw for a safe JSX component', async (element) => {
848
const isOnPhishingList = () => false;
849
850
expect(() =>
851
validateJsxElements(element, {
852
isOnPhishingList,
853
getSnap: jest.fn(),
854
getAccountByAddress: jest.fn(),
- hasPermission: jest.fn(),
855
+ hasPermission: jest.fn().mockReturnValue(true),
856
}),
857
).not.toThrow();
858
});
0 commit comments