MCPcopy Create free account
hub / github.com/Web3Auth/Auth / jrpcUtils.test.ts

File jrpcUtils.test.ts

test/jrpcUtils.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, expect, it } from "vitest";
2
3import { dataHasCause, errorCodes, getMessageFromCode, rpcErrors, serializeJrpcError } from "../src/jrpc/errors";
4import { JRPCNotification, JRPCParams, JRPCRequest, JRPCResponse } from "../src/jrpc/interfaces";

Callers

nothing calls this directly

Calls 9

serializeJrpcErrorFunction · 0.90
getMessageFromCodeFunction · 0.90
dataHasCauseFunction · 0.90
isJRPCNotificationFunction · 0.90
isJRPCRequestFunction · 0.90
isValidMethodFunction · 0.90
isJRPCSuccessFunction · 0.90
isJRPCFailureFunction · 0.90
invalidParamsMethod · 0.80

Tested by

no test coverage detected