(label, fn)
| 103 | } |
| 104 | |
| 105 | function 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 | |
| 116 | runTest('parseGitHubPr extracts owner/repo/number', () => { |
| 117 | assert.deepEqual(parseGitHubPr('https://github.com/acme/app/pull/12?foo=bar'), { |
no outgoing calls
no test coverage detected