Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github1602:1602/jugglingdb

  • Loading branch information...
commit 0f549c4182c3dc84aca4e457ca8178c0a961c0b0 2 parents 98b22bc + 4c0a0a5
@1602 authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 test/basic-querying.test.js
View
18 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) {
Please sign in to comment.
Something went wrong with that request. Please try again.