update to support paths without .js

This commit is contained in:
2017-07-28 20:44:24 +02:00
parent 57e551e0ed
commit 2c32c7103c
3 changed files with 26 additions and 13 deletions

View File

@ -17,7 +17,7 @@ console.log('this console comment was injected')
})
tap.test('should log hi to console', async () => {
require(path.join(__dirname, 'hi.js'))
require(path.join(__dirname, 'hi'))
})
tap.start()