MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / expectStatus

Function expectStatus

apps/api/scripts/loadtest/api-golden-path.js:57–63  ·  view source on GitHub ↗
(res, expected, label)

Source from the content-addressed store, hash-verified

55const PASSWORD = "LoadTest!1Strong";
56
57const expectStatus = (res, expected, label) => {
58 const ok = res.status === expected;
59 if (!ok) {
60 errorsCounter.add(1, { step: label, status: String(res.status) });
61 }
62 return ok;
63};
64
65export default function () {
66 if (!E2E_TOKEN_REQUIRED) {

Callers 1

api-golden-path.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected