Permalink
Browse files

Fixed the include paths of the tests to include the local version ins…

…tead of the default one in require path.
  • Loading branch information...
1 parent b88398b commit 0096b304d632b27eb37c091abeafb380709685a4 Chase Sechrist committed Dec 5, 2010
View
@@ -1,4 +1,4 @@
-var BufferList = require('bufferlist');
+var BufferList = require('../bufferlist');
var EventEmitter = require('events').EventEmitter;
var sys = require('sys');
View
@@ -1,6 +1,7 @@
// Test advancing the buffer
+
var Buffer = require('buffer').Buffer;
-var BufferList = require('bufferlist');
+var BufferList = require('../bufferlist');
exports.advance = function (assert) {
var b = new BufferList;
View
@@ -1,7 +1,7 @@
// Test the binary interface to bufferlists
var Buffer = require('buffer').Buffer;
-var BufferList = require('bufferlist').BufferList; // old style
-var Binary = require('bufferlist/binary').Binary; // old style
+var BufferList = require('../bufferlist').BufferList; // old style
+var Binary = require('../lib/binary').Binary; // old style
var sys = require('sys');
exports.binary = function (assert) {
@@ -1,8 +1,8 @@
// Test .into and hierarchical addressing assignment
var sys = require('sys');
var Buffer = require('buffer').Buffer;
-var BufferList = require('bufferlist');
-var Binary = require('bufferlist/binary');
+var BufferList = require('../bufferlist');
+var Binary = require('../lib/binary');
exports['binary assign'] = function (assert) {
var tapped = 0;
@@ -2,8 +2,8 @@
// Test binary byte and endianness functions
var sys = require('sys');
var Buffer = require('buffer').Buffer;
-var BufferList = require('bufferlist');
-var Binary = require('bufferlist/binary');
+var BufferList = require('../bufferlist');
+var Binary = require('../lib/binary');
exports.endianness = function (assert) {
var bList = new BufferList;
@@ -1,7 +1,7 @@
var sys = require('sys');
var net = require('net');
-var BufferList = require('bufferlist');
-var Binary = require('bufferlist/binary');
+var BufferList = require('../bufferlist');
+var Binary = require('../lib/binary');
function parser (sock) {
var bufferList = new BufferList;
View
@@ -1,8 +1,8 @@
// Check .into(), especially for object pollution
var sys = require('sys');
var Buffer = require('buffer').Buffer;
-var BufferList = require('bufferlist');
-var Binary = require('bufferlist/binary');
+var BufferList = require('../bufferlist');
+var Binary = require('../lib/binary');
exports.into = function (assert) {
var bList = new BufferList;
View
@@ -1,7 +1,7 @@
// Jumping around in a binary parser
var Buffer = require('buffer').Buffer;
-var BufferList = require('bufferlist');
-var Binary = require('bufferlist/binary');
+var BufferList = require('../bufferlist');
+var Binary = require('../lib/binary');
Number.prototype.upTo = function (n) {
var acc = [];
View
@@ -2,8 +2,8 @@
var sys = require('sys');
var Buffer = require('buffer').Buffer;
-var BufferList = require('bufferlist');
-var Binary = require('bufferlist/binary');
+var BufferList = require('../bufferlist');
+var Binary = require('../lib/binary');
exports['binary loop'] = function (assert) {
// test repeat
@@ -6,7 +6,7 @@ var net = require('net');
var client = new net.Stream;
exports['client/server'] = function (assert) {
- var BufferList = require('bufferlist');
+ var BufferList = require('../bufferlist');
var bufs = new BufferList;
var elems = [];
View
@@ -2,7 +2,7 @@
// Test joining lots of chunks into one buffer
var Buffer = require('buffer').Buffer;
-var BufferList = require('bufferlist');
+var BufferList = require('../bufferlist');
exports.events = function (assert) {
var b = new BufferList;
View
@@ -1,6 +1,6 @@
// Test joining lots of chunks into one buffer
var Buffer = require('buffer').Buffer;
-var BufferList = require('bufferlist');
+var BufferList = require('../bufferlist');
exports.join = function (assert) {
var buf1 = new Buffer(5); buf1.write('abcde');

0 comments on commit 0096b30

Please sign in to comment.