Permalink
Browse files

fix browser unit tests by removing some node-specific code

  • Loading branch information...
caolan committed Apr 27, 2011
1 parent 0253167 commit ec90dc184eb45dfa8bdede1b21b47da07709adc7
Showing with 8 additions and 8 deletions.
  1. +8 −8 test/test-async.js
View
@@ -1253,22 +1253,22 @@ exports['memoize custom hash function'] = function (test) {
// Issue 10 on github: https://github.com/caolan/async/issues#issue/10
exports['falsy return values in series'] = function (test) {
function taskFalse(callback) {
process.nextTick(function() {
async.nextTick(function() {
callback(null, false);
});
};
function taskUndefined(callback) {
process.nextTick(function() {
async.nextTick(function() {
callback(null, undefined);
});
};
function taskEmpty(callback) {
process.nextTick(function() {
async.nextTick(function() {
callback(null);
});
};
function taskNull(callback) {
process.nextTick(function() {
async.nextTick(function() {
callback(null, null);
});
};
@@ -1288,22 +1288,22 @@ exports['falsy return values in series'] = function (test) {
// Issue 10 on github: https://github.com/caolan/async/issues#issue/10
exports['falsy return values in parallel'] = function (test) {
function taskFalse(callback) {
process.nextTick(function() {
async.nextTick(function() {
callback(null, false);
});
};
function taskUndefined(callback) {
process.nextTick(function() {
async.nextTick(function() {
callback(null, undefined);
});
};
function taskEmpty(callback) {
process.nextTick(function() {
async.nextTick(function() {
callback(null);
});
};
function taskNull(callback) {
process.nextTick(function() {
async.nextTick(function() {
callback(null, null);
});
};

0 comments on commit ec90dc1

Please sign in to comment.