Permalink
Browse files

Added test for date comparison in Postgres adapter

  • Loading branch information...
1 parent 5663412 commit ef6404750a2114edd6c9b51283bedc51b8042dc2 mde committed Aug 25, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 test/adapters/sql/postgres.js
@@ -425,6 +425,17 @@ tests = {
});
}
+, 'test all, using less-than createdAt': function (next) {
+ Zooby.all({createdAt: {lt: new Date()}},
+ {}, function (err, data) {
+ assert.equal(data.length, 3);
+ if (err) {
+ throw err;
+ }
+ next();
+ });
+ }
+
};
module.exports = tests;

0 comments on commit ef64047

Please sign in to comment.