Skip to content

Commit

Permalink
Define sendBeacon in test file (#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-imber committed Jun 17, 2024
1 parent 9475d85 commit 7e8c2b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/messenger/background.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const adSpec: BackgroundSpecs = {
transform: 'translate3d(0,0,0)',
};

navigator.sendBeacon = jest.fn();

describe('Cross-frame messenger: setupBackground', () => {
class IntersectionObserver {
constructor() {
Expand Down

0 comments on commit 7e8c2b4

Please sign in to comment.