Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

skip nextTick in the browser unit test in node

  • Loading branch information...
commit d57f45c837d0fb348c84a0dd1ea2ebb2143ae017 1 parent b2d7e69
@caolan caolan authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 test/test-async.js
View
7 test/test-async.js
@@ -915,12 +915,11 @@ exports['nextTick in node'] = function(test){
};
exports['nextTick in the browser'] = function(test){
- test.expect(1);
-
if (typeof process !== 'undefined') {
- var _nextTick = process.nextTick;
- process.nextTick = undefined;
+ // skip this test in node
+ return test.done();
}
+ test.expect(1);
var call_order = [];
async.nextTick(function(){call_order.push('two');});
Please sign in to comment.
Something went wrong with that request. Please try again.