Ready to test array field matching

pull/2/head
Louis Chatriot 12 years ago
parent 7254e17e6f
commit 7c0c4dd35a
  1. 11
      test/db.test.js

@ -284,6 +284,17 @@ describe('Database', function () {
}); });
}); });
it.only('By default, matching on an array field is matching any of its components', function (done) {
d.insert({ fruits: ['orange', 'apple', 'pear'] }, function () {
d.insert({ fruits: ['banana', 'coconut', 'pear'] }, function () {
d.find({ fruits: 'pear' }, function (err, docs) {
console.log(docs);
done();
});
});
});
});
}); // ==== End of 'Find' ==== // }); // ==== End of 'Find' ==== //

Loading…
Cancel
Save