account for cases where there is no parent in the request

This commit is contained in:
2017-07-30 16:38:57 +02:00
parent 47f18506f9
commit ce8789f2da
3 changed files with 15 additions and 3 deletions

View File

@ -10,6 +10,7 @@ tap.test('should inject a file using fileArray', async () => {
path: path.join(__dirname, 'hi.js'),
contents: new Buffer(
`require('./hi2.js')
require('through2')
console.log('this console comment was injected')
`)
}