Permalink
Browse files

Merge branch 'master' of github1602:1602/jugglingdb

  • Loading branch information...
2 parents 98b22bc + 4c0a0a5 commit 0f549c4182c3dc84aca4e457ca8178c0a961c0b0 @1602 committed Apr 18, 2013
Showing with 18 additions and 0 deletions.
  1. +18 −0 test/basic-querying.test.js
@@ -60,6 +60,24 @@ describe('basic-querying', function() {
done();
});
});
+
+ it('should query limited collection', function(done) {
+ User.all({limit: 3}, function(err, users) {
+ should.exists(users);
+ should.not.exists(err);
+ users.should.have.lengthOf(3);
+ done();
+ });
+ });
+
+ it('should query offset collection with limit', function(done) {
+ User.all({skip: 1, limit: 4}, function(err, users) {
+ should.exists(users);
+ should.not.exists(err);
+ users.should.have.lengthOf(4);
+ done();
+ });
+ });
it('should query filtered collection', function(done) {
User.all({where: {role: 'lead'}}, function(err, users) {

0 comments on commit 0f549c4

Please sign in to comment.