diff options
author | Alexander Early <alexander.early@gmail.com> | 2016-03-07 22:28:11 -0800 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2016-03-07 22:28:11 -0800 |
commit | 0736189b1d2909121656d79879726b031ea8ed87 (patch) | |
tree | 75eddc87a57d62efe654091ddd5c54da9d7efbb8 /test | |
parent | 0600652d67344373ba9885d4a7bb6087065c9634 (diff) | |
download | async-0736189b1d2909121656d79879726b031ea8ed87.tar.gz |
pass extra args to setImmediate/nextTick. Fixes #940
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-async.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/test/test-async.js b/test/test-async.js index b4aef6c..ba79684 100755 --- a/test/test-async.js +++ b/test/test-async.js @@ -2042,33 +2042,6 @@ console_fn_tests('dir'); console_fn_tests('warn'); console_fn_tests('error');*/ -exports['nextTick'] = function(test){ - test.expect(1); - var call_order = []; - async.nextTick(function(){call_order.push('two');}); - call_order.push('one'); - setTimeout(function(){ - test.same(call_order, ['one','two']); - test.done(); - }, 50); -}; - -exports['nextTick in the browser'] = function(test){ - if (!isBrowser()) { - // skip this test in node - return test.done(); - } - test.expect(1); - - var call_order = []; - async.nextTick(function(){call_order.push('two');}); - - call_order.push('one'); - setTimeout(function(){ - test.same(call_order, ['one','two']); - }, 50); - setTimeout(test.done, 100); -}; exports['concat'] = function(test){ test.expect(3); |