MCPcopy Create free account
hub / github.com/block/buzz / assertOk

Function assertOk

desktop/src/testing/e2eBridge.ts:4351–4358  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

4349}
4350
4351async function assertOk(response: Response) {
4352 if (response.ok) {
4353 return;
4354 }
4355
4356 const body = await response.text();
4357 throw new Error(body || `Request failed with ${response.status}`);
4358}
4359
4360function getRelayIdentity(config: E2eConfig | undefined): TestIdentity {
4361 const identity = getIdentity(config);

Callers 2

relayJsonRequestFunction · 0.85
relayQueryFunction · 0.85

Calls 1

textMethod · 0.80

Tested by

no test coverage detected