(str)
| 1122 | { |
| 1123 | function testLines(input) { |
| 1124 | const countLines = (str) => (str.match(/\n/g) || []).length; |
| 1125 | const withoutColor = util.inspect(input); |
| 1126 | const withColor = util.inspect(input, { colors: true }); |
| 1127 | assert.strictEqual(countLines(withoutColor), countLines(withColor)); |