Skip to content

Commit 94b867e

Browse files
committed
Ignore defaultPageFunctions in code coverage
1 parent fb5b0c6 commit 94b867e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/api/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ export class Hashtag<T> extends Instagram<T> {
192192
*/
193193
export class User<T> extends Instagram<T> {
194194
defaultPageFunctions = [
195+
/* istanbul ignore next */
195196
() => {
196197
let morePostsIntervalCounter = 0;
197198
const morePostsInterval = setInterval(() => {

src/api/instagram.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,6 @@ export class Instagram<PostType> {
743743

744744
// Run defaultPagePlugins
745745
for (const f of this.defaultPageFunctions) {
746-
/* istanbul ignore next */
747746
await this.page.evaluate(f);
748747
}
749748

0 commit comments

Comments
 (0)