()
| 43 | |
| 44 | // Test queue property |
| 45 | function testQueueProperty() { |
| 46 | // ✅ Should work - q is optional and can be accessed |
| 47 | const queue = window.op.q; |
| 48 | if (queue) { |
| 49 | queue.forEach((item) => { |
| 50 | // Queue items should be properly typed |
| 51 | if (item[0] === 'track') { |
| 52 | const eventName = item[1]; // Should be string |
| 53 | const properties = item[2]; // Should be TrackProperties | undefined |
| 54 | } |
| 55 | }); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | // Test that both APIs work together |
| 60 | function testBothAPIs() { |
nothing calls this directly
no outgoing calls
no test coverage detected