MCPcopy Create free account
hub / github.com/SethGammon/Citadel / runTest

Function runTest

scripts/test-deploy-steward.js:105–114  ·  view source on GitHub ↗
(label, fn)

Source from the content-addressed store, hash-verified

103}
104
105function runTest(label, fn) {
106 try {
107 fn();
108 console.log(`PASS ${label}`);
109 } catch (error) {
110 console.error(`FAIL ${label}`);
111 console.error(error.stack || error.message);
112 process.exitCode = 1;
113 }
114}
115
116runTest('parseGitHubPr extracts owner/repo/number', () => {
117 assert.deepEqual(parseGitHubPr('https://github.com/acme/app/pull/12?foo=bar'), {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected