diff --git a/test/circular.js b/test/circular.js index d0c7b44..0ec6a5f 100644 --- a/test/circular.js +++ b/test/circular.js @@ -2,7 +2,7 @@ var assert = require('assert'); var Traverse = require('traverse'); var util = require('util'); -exports.circular = function (assert) { +exports.circular = function () { var obj = { x : 3 }; obj.y = obj; var foundY = false; diff --git a/test/instance.js b/test/instance.js index 4531ee0..501981f 100644 --- a/test/instance.js +++ b/test/instance.js @@ -1,7 +1,8 @@ +var assert = require('assert'); var Traverse = require('traverse'); var EventEmitter = require('events').EventEmitter; -exports['check instanceof on node elems'] = function (assert) { +exports['check instanceof on node elems'] = function () { var counts = { emitter : 0 }; diff --git a/test/json.js b/test/json.js index de916e7..0b067cb 100644 --- a/test/json.js +++ b/test/json.js @@ -1,6 +1,7 @@ +var assert = require('assert'); var Traverse = require('traverse'); -exports['json test'] = function (assert) { +exports['json test'] = function () { var id = 54; var callbacks = {}; var obj = { moo : function () {}, foo : [2,3,4, function () {}] }; diff --git a/test/leaves.js b/test/leaves.js index de42407..4e8d280 100644 --- a/test/leaves.js +++ b/test/leaves.js @@ -1,6 +1,7 @@ +var assert = require('assert'); var Traverse = require('traverse'); -exports['leaves test'] = function (assert) { +exports['leaves test'] = function () { var acc = []; Traverse({ a : [1,2,3], diff --git a/test/obj.js b/test/obj.js index 6c3a19c..9c3b0db 100644 --- a/test/obj.js +++ b/test/obj.js @@ -1,7 +1,7 @@ var assert = require('assert'); var Traverse = require('traverse'); -exports['traverse an object with nested functions'] = function (assert) { +exports['traverse an object with nested functions'] = function () { var to = setTimeout(function () { assert.fail('never ran'); }, 1000);