add getFileString()

This commit is contained in:
2017-07-30 22:00:20 +02:00
parent fa1611ab91
commit 8789ee920b
4 changed files with 18 additions and 1 deletions

View File

@ -21,4 +21,9 @@ tap.test('should log hi to console', async () => {
require(path.join(__dirname, 'hi.js'))
})
tap.test('should get a string for a filePath', async () => {
let fileString = smartinject.getFileString(path.join(__dirname, 'hi.js'))
console.log(fileString)
})
tap.start()