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

Function testExpectedErrors

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

Source from the content-addressed store, hash-verified

80}
81
82function testExpectedErrors() {
83 // @ts-expect-error - 'invalidMethod' is not a valid method
84 window.op('invalidMethod', 'test');
85 // @ts-expect-error - track expects (name: string, properties?: TrackProperties)
86 window.op.track(123);
87 // @ts-expect-error - identify expects IdentifyPayload
88 window.op.identify('user123');
89}
90
91export {};

Callers

nothing calls this directly

Calls 2

trackMethod · 0.45
identifyMethod · 0.45

Tested by

no test coverage detected