Files: 65191f9a9664f013ebe726bb95a1a54b086e1bd5 / test / test-79-npm / rechoir / rechoir.js
355 bytesRaw
1 | ; |
2 | |
3 | var path = require('path'); |
4 | var config = require('interpret').extensions; |
5 | var rechoir = require('rechoir'); |
6 | require('coffee-script/register'); |
7 | rechoir.prepare(config, './fixture.coffee'); |
8 | var filename = path.join(__dirname, 'fixture.coffee'); |
9 | var coffee = require(filename); |
10 | |
11 | if (typeof coffee.root === 'function') { |
12 | console.log('ok'); |
13 | } |
14 |
Built with git-ssb-web