Files: 1eb144e388da5f1a3466703f56ac4ab591d700fc / 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