15 lines
282 B
JavaScript
Raw Normal View History

2021-02-11 11:12:23 +01:00
'use strict'
const path = require('path')
const { waitForOutput } = require('../utils')
2021-02-11 11:12:23 +01:00
async function test () {
process.stdout.write('2.js\n')
await waitForOutput('Hello p2p world!', 'node', [path.join(__dirname, '2.js')], {
cwd: __dirname
2021-02-11 11:12:23 +01:00
})
}
module.exports = test