MCPcopy Create free account
hub / github.com/Web3Auth/Auth / createEngine

Function createEngine

test/jrpcEngine.test.ts:182–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180
181describe("Provider", () => {
182 const createEngine = () => {
183 const engine = new JRPCEngine();
184 engine.push((_req: JRPCRequest<JRPCParams>, res: JRPCResponse<unknown>, _next: JRPCEngineNextCallback, end: () => void) => {
185 res.result = "engine-middleware-1";
186 end();
187 });
188 return engine;
189 };
190
191 it("should return a provider from the engine", async () => {
192 const engine = createEngine();

Callers 1

jrpcEngine.test.tsFile · 0.85

Calls 1

pushMethod · 0.95

Tested by

no test coverage detected