(block, text, indetion = 0)
| 51 | |
| 52 | const logBlocks = {}; |
| 53 | function log(block, text, indetion = 0) { |
| 54 | for (let i = 0; i <= indetion; i++) { |
| 55 | text = ` ${text}`; |
| 56 | } |
| 57 | if (mode.blockLog) { |
| 58 | if (!logBlocks[block]) logBlocks[block] = []; |
| 59 | logBlocks[block].push(text); |
| 60 | } else { |
| 61 | console.log(text); |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | function logEr(block, text, indetion = 0) { |
| 66 | for (let i = 0; i <= indetion; i++) { |
no outgoing calls
no test coverage detected