[Pkg-javascript-commits] [node-async] 364/480: Test for correct async callback behaviour

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:42 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 475c5fd61bc11f7b6198376f28ab48d23380edcf
Author: Ryan Graham <r.m.graham at gmail.com>
Date:   Sat Nov 23 21:43:28 2013 -0800

    Test for correct async callback behaviour
---
 test/test-async.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/test-async.js b/test/test-async.js
index b92168a..b7c767b 100755
--- a/test/test-async.js
+++ b/test/test-async.js
@@ -2244,16 +2244,16 @@ exports['memoize maintains asynchrony'] = function (test) {
     call_order.push('tick1');
 
     function memoize_done() {
-        var zalgo_call_order = [
+        var async_call_order = [
             ['fn',1,2],             // initial async call
             'tick1',                // async caller
             ['cb',1,2],             // async callback
         //  ['fn',1,2], // memoized // memoized async body
+            'tick2',                // handler for first async call
         //  ['cb',1,2], // memoized // memoized async response body
-            'tick3',                // handler for memoized async call
-            'tick2'                 // handler for first async call
+            'tick3'                 // handler for memoized async call
         ];
-        test.same(call_order, zalgo_call_order);
+        test.same(call_order, async_call_order);
         test.done();
     }
 };

-- 
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