MCPcopy Index your code
hub / github.com/pocketbase/js-sdk / on

Method on

tests/mocks.ts:25–27  ·  view source on GitHub ↗
(request: RequestMock)

Source from the content-addressed store, hash-verified

23 private mocks: Array<RequestMock> = [];
24
25 on(request: RequestMock) {
26 this.mocks.push(request);
27 }
28
29 /**
30 * Initializes the mock by temporary overwriting `global.fetch`.

Calls

no outgoing calls

Tested by

no test coverage detected