update file mock to return file name

This commit is contained in:
John Mitchell
2018-11-02 16:32:51 -04:00
parent 90d1ab88b1
commit a670a73fd0
2 changed files with 9 additions and 3 deletions

View File

@@ -1 +1,7 @@
module.exports = 'test-file-stub';
const path = require('path');
module.exports = {
process (src, filename) {
return `module.exports=${JSON.stringify(path.basename(filename))};`;
},
};