Update tests
This commit is contained in:
parent
00b51584b6
commit
9e25e5a0e0
3 changed files with 152 additions and 8 deletions
|
@ -5,7 +5,7 @@ export default class ImageHelper {
|
|||
public static async FetchImageFromRedditGallery(url: string): Promise<string | undefined> {
|
||||
const fetched = await fetch(url);
|
||||
|
||||
if (!fetched) {
|
||||
if (!fetched || fetched.errored || fetched.statusCode != 200) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue