(t, getSubprocess, expectedStdout)
| 12 | }; |
| 13 | |
| 14 | const testScriptStdout = async (t, getSubprocess, expectedStdout) => { |
| 15 | const {stdout} = await getSubprocess(); |
| 16 | t.is(stdout, expectedStdout); |
| 17 | }; |
| 18 | |
| 19 | test('$ allows number interpolation', testScriptStdout, () => $`echo.js 1 ${2}`, '1\n2'); |
| 20 | test('$ can concatenate multiple tokens', testScriptStdout, () => $`echo.js ${'foo'}bar${'foo'}`, 'foobarfoo'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…