[Pkg-javascript-commits] [node-async] 79/480: fix browser unit tests by removing some node-specific code

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:14 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-async.

commit ec90dc184eb45dfa8bdede1b21b47da07709adc7
Author: Caolan McMahon <caolan at caolanmcmahon.com>
Date:   Wed Apr 27 13:47:37 2011 -0700

    fix browser unit tests by removing some node-specific code
---
 test/test-async.js | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/test/test-async.js b/test/test-async.js
index 787e5a4..8c2cebd 100644
--- a/test/test-async.js
+++ b/test/test-async.js
@@ -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);
         });
     };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git



More information about the Pkg-javascript-commits mailing list