forked from eatvio/eatvio_app
fix: issue-372, issue-227, issue-406
This commit is contained in:
@@ -52,5 +52,14 @@ void main() {
|
||||
expect(posts[2].videoEmbedUrl, contains('rutube.ru/play/embed'));
|
||||
expect(posts[2].author.isEntitySubscribedByMe, isNull);
|
||||
});
|
||||
|
||||
test('treats API placeholder cover as missing image', () {
|
||||
expect(PostFeedMapper.resolveMediaUrl('images/element-image-placeholder.svg'), isEmpty);
|
||||
expect(PostFeedMapper.hasRenderableImage('images/element-image-placeholder.svg'), isFalse);
|
||||
expect(
|
||||
PostFeedMapper.hasVisibleMedia(image: '', images: const [], videoEmbedUrl: null),
|
||||
isFalse,
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user