(t, expectedOutput, methodName, preserveNewlines)
| 114 | test('.duplex() can use "binary: false" + "preserveNewlines: false"', testText, complexChunks, 'duplex', false, false, 'utf8'); |
| 115 | |
| 116 | const testTextOutput = async (t, expectedOutput, methodName, preserveNewlines) => { |
| 117 | const subprocess = getSubprocess(methodName, complexFull); |
| 118 | const stream = subprocess[methodName]({binary: false, preserveNewlines}); |
| 119 | |
| 120 | await assertStreamOutput(t, stream, expectedOutput); |
| 121 | await assertSubprocessOutput(t, subprocess, complexFull); |
| 122 | }; |
| 123 | |
| 124 | test('.readable() "binary: false" keeps output as is', testTextOutput, complexFull, 'readable', undefined); |
| 125 | test('.readable() "binary: false" + "preserveNewlines: true" keeps output as is', testTextOutput, complexFull, 'readable', true); |
nothing calls this directly
no test coverage detected
searching dependent graphs…