We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afe1959 commit 28714b7Copy full SHA for 28714b7
2 files changed
test/common.js
@@ -3,9 +3,9 @@ var path = require('path');
3
4
var rootDir = path.join(__dirname, '..');
5
common.dir = {
6
- lib: rootDir + '/lib',
7
- fixture: rootDir + '/test/fixture',
8
- tmp: rootDir + '/test/tmp',
+ lib: path.join(rootDir, '/lib'),
+ fixture: path.join(rootDir, '/test/fixture'),
+ tmp: path.join(rootDir, '/test/tmp'),
9
};
10
11
common.assert = require('assert');
test/static.js
@@ -6,6 +6,12 @@ var path = require('path');
var mime = require('mime-types');
var common = require('./common');
+// prepare tmp folder
+if (!fs.existsSync(common.dir.tmp))
+{
12
+ fs.mkdirSync(common.dir.tmp);
13
+}
14
+
15
// make it work with self-signed
16
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
17
0 commit comments