mirror of
https://github.com/sstent/node_app.git
synced 2026-01-27 15:41:57 +00:00
initial commit
This commit is contained in:
24
node_modules/formidable/test/legacy/common.js
generated
vendored
Normal file
24
node_modules/formidable/test/legacy/common.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
var path = require('path'),
|
||||
fs = require('fs');
|
||||
|
||||
try {
|
||||
global.Gently = require('gently');
|
||||
} catch (e) {
|
||||
throw new Error('this test suite requires node-gently');
|
||||
}
|
||||
|
||||
exports.lib = path.join(__dirname, '../../lib');
|
||||
|
||||
global.GENTLY = new Gently();
|
||||
|
||||
global.assert = require('assert');
|
||||
global.TEST_PORT = 13532;
|
||||
global.TEST_FIXTURES = path.join(__dirname, '../fixture');
|
||||
global.TEST_TMP = path.join(__dirname, '../tmp');
|
||||
|
||||
// Stupid new feature in node that complains about gently attaching too many
|
||||
// listeners to process 'exit'. This is a workaround until I can think of a
|
||||
// better way to deal with this.
|
||||
if (process.setMaxListeners) {
|
||||
process.setMaxListeners(10000);
|
||||
}
|
||||
Reference in New Issue
Block a user