Permalink
Browse files

failing test; calling query without callback

  • Loading branch information...
1 parent b546bc1 commit b14dfbd7bc377d6d1c97f128c496aef2d6111b93 @aheckmann aheckmann committed Oct 19, 2011
Showing with 8 additions and 1 deletion.
  1. +0 −1 test/model.test.js
  2. +8 −0 test/query.test.js
View
@@ -4465,7 +4465,6 @@ module.exports = {
});
},
-
'date casting test (gh-502)': function () {
var db = start()
View
@@ -722,6 +722,14 @@ module.exports = {
}).op.should.equal('distinct');
},
+ 'distinct Query without a callback works': function () {
+ var db = start();
+ var query = new Query();
+ var Product = db.model('Product');
+ new Query().bind(Product, 'distinct').distinct('blah');
+ setTimeout(db.close.bind(db), 300);
+ },
+
'querying/updating with model instance containing embedded docs should work (#454)': function () {
var db = start();
var Product = db.model('Product');

0 comments on commit b14dfbd

Please sign in to comment.