Function
getAllOutput
(logSpy: Mock<typeof console.log>, errorSpy: Mock<typeof console.error>)
Source from the content-addressed store, hash-verified
| 40 | } |
| 41 | |
| 42 | function getAllOutput(logSpy: Mock<typeof console.log>, errorSpy: Mock<typeof console.error>): string { |
| 43 | const logOutput = logSpy.mock.calls.map(call => call.join(' ')).join('\n') |
| 44 | const errorOutput = errorSpy.mock.calls.map(call => call.join(' ')).join('\n') |
| 45 | return logOutput + (logOutput && errorOutput ? '\n' : '') + errorOutput |
| 46 | } |
| 47 | |
| 48 | describe('open command', () => { |
| 49 | let program: Command |
Tested by
no test coverage detected