Skip to content

Commit 9c30215

Browse files
committed
Ignore parsing errors in coverage
1 parent f6a6854 commit 9c30215

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/instagram.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ export class Instagram<PostType> {
601601
window["_sharedData"].entry_data.PostPage[0].graphql,
602602
);
603603
});
604-
} catch (error) {
604+
} catch (error) /* istanbul ignore next */ {
605605
await this.handlePostPageError(
606606
postPage,
607607
error,
@@ -618,7 +618,7 @@ export class Instagram<PostType> {
618618
// Parse data to PostType
619619
try {
620620
parsed = JSON.parse(data) as PostType;
621-
} catch (error) {
621+
} catch (error) /* istanbul ignore next */ {
622622
await this.handlePostPageError(
623623
postPage,
624624
error,

0 commit comments

Comments
 (0)