Files: 8f4b43a09aab9801bf28987edd59c2e366180327 / 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