MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / testQueueProperty

Function testQueueProperty

packages/sdks/web/src/types.debug.ts:45–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44// Test queue property
45function 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
60function testBothAPIs() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected