raspberryGPIOhtmlserver/node_modules/formidable/test/legacy/common.js
node_modules/formidable/test/legacy/common.jsRaw
1var path = require('path'),
2 fs = require('fs');
3
4try {
5 global.Gently = require('gently');
6} catch (e) {
7 throw new Error('this test suite requires node-gently');
8}
9
10exports.lib = path.join(__dirname, '../../lib');
11
12global.GENTLY = new Gently();
13
14global.assert = require('assert');
15global.TEST_PORT = 13532;
16global.TEST_FIXTURES = path.join(__dirname, '../fixture');
17global.TEST_TMP = path.join(__dirname, '../tmp');
18
19// Stupid new feature in node that complains about gently attaching too many
20// listeners to process 'exit'. This is a workaround until I can think of a
21// better way to deal with this.
22if (process.setMaxListeners) {
23 process.setMaxListeners(10000);
24}