[Pkg-javascript-commits] [node-async] 367/480: Refactor memoize custom hash test

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

    Refactor memoize custom hash test
    
    Removes assumption that memoized result is synchronous
---
 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 e2690f2..6b0a6a6 100755
--- a/test/test-async.js
+++ b/test/test-async.js
@@ -2342,11 +2342,11 @@ exports['memoize custom hash function'] = function (test) {
     });
     fn2(1, 2, function (err, result) {
         test.equal(result, 3);
+        fn2(2, 2, function (err, result) {
+            test.equal(result, 3);
+            test.done();
+        });
     });
-    fn2(2, 2, function (err, result) {
-        test.equal(result, 3);
-    });
-    test.done();
 };
 
 exports['memoize manually added memo value'] = function (test) {

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