Skip to content

Commit 71df2a4

Browse files
committed
-commented require.paths from nodekit.js and test.js in Node/, deprecated in node.0.6.8
1 parent aae8817 commit 71df2a4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Node/nodekit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var termkit = {
33
version: 1,
44
};
55

6-
require.paths.unshift(__dirname + '/../Shared/');
6+
//require.paths.unshift(__dirname + '/../Shared/');
77

88
// Load requirements.
99
var http = require('http'),

Node/test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ var termkit = {
55
version: 1,
66
test: true,
77
};
8-
require.paths.unshift('./socket.io-node/lib');
9-
require.paths.unshift('.');
10-
require.paths.unshift('shell');
11-
require.paths.unshift('../Shared/');
8+
//require.paths.unshift('./socket.io-node/lib');
9+
//require.paths.unshift('.');
10+
//require.paths.unshift('shell');
11+
//require.paths.unshift('../Shared/');
1212

1313
var whenDone = require('misc').whenDone;
1414
var EventEmitter = require("events").EventEmitter;
@@ -248,7 +248,7 @@ function testMeta(assert) {
248248

249249
// Generate headers back.
250250
var string = headers.generate();
251-
assert(/\r\n\r\n$/(string), 'Headers end in CRLF x2');
251+
assert(/\r\n\r\n$/.exec(string), 'Headers end in CRLF x2');
252252
assert(string.split(/\r\n/).length == 5 + 2, '5 Headers returned');
253253
assert(/^Content-Type:\s*text\/plain;\s*charset=utf-16\r\n/m, 'Content-Type correct');
254254
assert(/^Content-Disposition:\s*attachment;\s*filename=genome.jpeg;\s*modification-date="Wed, 12 February 1997 16:29:51 -0500"\r\n/m, 'Content-Disposition correct');
@@ -641,4 +641,4 @@ for (i in tests) (function (i, test) {
641641
});
642642
})(i, tests[i]);
643643

644-
(track(function () {}))();
644+
(track(function () {}))();

0 commit comments

Comments
 (0)