Skip to content

Commit e856cb6

Browse files
committed
(fix): failing tests for app-tests
1 parent cf0d184 commit e856cb6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/polycentric/src/features/post/content/LinkPreviewCard.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ describe('LinkPreviewCard', () => {
7373
<LinkPreviewCard link={makeLink({ image: 'https://img.test/x.png' })} />,
7474
);
7575
// The raw image URL is rewritten through the proxy, not hotlinked.
76-
expect(getByTestId('linkPreviewImage').props.source.uri).toBe(
76+
// expo-image normalizes `source={{ uri }}` into an array of sources.
77+
expect(getByTestId('linkPreviewImage').props.source[0].uri).toBe(
7778
'proxy://https://img.test/x.png',
7879
);
7980
});

0 commit comments

Comments
 (0)