| 55 | |
| 56 | // 模拟 IntersectionObserver |
| 57 | global.IntersectionObserver = class IntersectionObserver { |
| 58 | constructor() {} |
| 59 | disconnect() {} |
| 60 | observe() {} |
| 61 | unobserve() {} |
| 62 | takeRecords() { |
| 63 | return []; |
| 64 | } |
| 65 | }; |
| 66 | |
| 67 | // 模拟 Service Worker |
| 68 | global.navigator.serviceWorker = { |
nothing calls this directly
no outgoing calls
no test coverage detected