Name: js-handler/node_modules/restify/node_modules/formidable/test/common.js
| 1: | var path = require('path'); |
| 2: | |
| 3: | var root = path.join(__dirname, '../'); |
| 4: | exports.dir = { |
| 5: | root : root, |
| 6: | lib : root + '/lib', |
| 7: | fixture : root + '/test/fixture', |
| 8: | tmp : root + '/test/tmp', |
| 9: | }; |
| 10: | |
| 11: | exports.port = 13532; |
| 12: | |
| 13: | exports.formidable = require('..'); |
| 14: | exports.assert = require('assert'); |
| 15: | |
| 16: | exports.require = function(lib) { |
| 17: | return require(exports.dir.lib + '/' + lib); |
| 18: | }; |
