summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Graham <r.m.graham@gmail.com>2013-11-23 22:23:12 -0800
committerRyan Graham <r.m.graham@gmail.com>2013-11-23 22:33:26 -0800
commit19ecb5a6a680800f9cd3a3395ce4a391dcc938aa (patch)
treee6f07ae78caa2b638334b6d58bb6404c7165b9e5
parentf81ef1994f8093c3ed4445bacc02c8975312f9b3 (diff)
downloadasync-19ecb5a6a680800f9cd3a3395ce4a391dcc938aa.tar.gz
Refactor memoize custom hash test
Removes assumption that memoized result is synchronous
-rwxr-xr-xtest/test-async.js8
1 files 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) {