summaryrefslogtreecommitdiff
path: root/mocha_test/map.js
diff options
context:
space:
mode:
Diffstat (limited to 'mocha_test/map.js')
-rw-r--r--mocha_test/map.js18
1 files changed, 7 insertions, 11 deletions
diff --git a/mocha_test/map.js b/mocha_test/map.js
index a537427..e7d4fa3 100644
--- a/mocha_test/map.js
+++ b/mocha_test/map.js
@@ -122,12 +122,10 @@ describe("map", function() {
callback(null, val * 2);
}, function(err, result) {
if (err) throw err;
- expect(Object.prototype.toString.call(result)).to.equal('[object Object]');
- expect(result).to.eql({
- a: 2,
- b: 4,
- c: 6
- });
+ expect(Object.prototype.toString.call(result)).to.equal('[object Array]');
+ expect(result).to.contain(2);
+ expect(result).to.contain(4);
+ expect(result).to.contain(6);
done();
});
});
@@ -170,11 +168,9 @@ describe("map", function() {
callback(null, val * 2);
}, function(err, result) {
if (err) throw err;
- expect(result).to.eql({
- a: 2,
- b: 4,
- c: 6
- });
+ expect(result).to.contain(2);
+ expect(result).to.contain(4);
+ expect(result).to.contain(6);
done();
});
});