summaryrefslogtreecommitdiff
path: root/test/test-async.js
diff options
context:
space:
mode:
authorGraeme Yeates <yeatesgraeme@gmail.com>2015-08-01 15:37:41 -0400
committerGraeme Yeates <yeatesgraeme@gmail.com>2015-08-01 15:44:11 -0400
commit0574aa90d696e22e5c870192ba8ec22e4e0e9eb2 (patch)
treefa18563af711b761ff75d10ff53b23882d2086c5 /test/test-async.js
parent1f97538586e09ce76168fa1ceb04288fd958b0a0 (diff)
downloadasync-object-map.tar.gz
Allow map to return objectsobject-map
Diffstat (limited to 'test/test-async.js')
-rwxr-xr-xtest/test-async.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test-async.js b/test/test-async.js
index dc7d949..23aa2b9 100755
--- a/test/test-async.js
+++ b/test/test-async.js
@@ -1810,6 +1810,7 @@ exports['map'] = {
callback(null, val * 2);
}, function (err, result) {
if (err) throw err;
+ test.equals(Object.prototype.toString.call(result), '[object Object]');
test.same(result, {a: 2, b: 4, c: 6});
test.done();
});