MCPcopy
hub / github.com/jvilk/BrowserFS / noErrorAssert

Function noErrorAssert

test/tests/general/check-options-test.ts:26–30  ·  view source on GitHub ↗
(e?: ApiError)

Source from the content-addressed store, hash-verified

24}
25
26function noErrorAssert(e?: ApiError) {
27 if (e) {
28 assert(!e, `Received unplanned error: ${e.toString()}`);
29 }
30}
31
32function errorMessageAssert(expectedMsgs: string[], unexpectedMsgs: string[] = []): (e?: ApiError) => void {
33 let called = false;

Callers 1

Calls 2

toStringMethod · 0.80
assertFunction · 0.50

Tested by

no test coverage detected