Skip to content

Commit

Permalink
Don't make network requests in the media unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matus-tomlein committed Oct 17, 2024
1 parent 7a9c12a commit e986d9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/browser-plugin-media-tracking/tests/test.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ describe('MediaTrackingPlugin', () => {
},
],
contexts: { webPage: false },
customFetch: async () => new Response(null, { status: 200 }),
});
id = `media-${idx}`;
});
Expand Down
1 change: 1 addition & 0 deletions plugins/browser-plugin-media/test/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ describe('Media Tracking API', () => {
},
],
contexts: { webPage: false },
customFetch: async () => new Response(null, { status: 200 }),
});
id = `media-${idx}`;
});
Expand Down

0 comments on commit e986d9b

Please sign in to comment.