Skip to content

Commit

Permalink
updated tests for expresso updates ages ago
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed May 28, 2011
1 parent 42d0460 commit f95bf5e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/circular.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion test/instance.js
Original file line number Diff line number Diff line change
@@ -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 };

Expand Down
3 changes: 2 additions & 1 deletion test/json.js
Original file line number Diff line number Diff line change
@@ -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 () {}] };
Expand Down
3 changes: 2 additions & 1 deletion test/leaves.js
Original file line number Diff line number Diff line change
@@ -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],
Expand Down
2 changes: 1 addition & 1 deletion test/obj.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit f95bf5e

Please sign in to comment.