Skip to content

Commit

Permalink
repos: Return all repositories available
Browse files Browse the repository at this point in the history
Fixes gh-25
  • Loading branch information
AurelioDeRosa committed Feb 20, 2016
1 parent 87bcd33 commit adcfbdd
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/github.bundle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/github.bundle.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/github.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/github.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@

url += '?' + params.join('&');

_request('GET', url, null, cb);
_requestAllPages(url, cb);
};

// List user organizations
Expand Down
10 changes: 5 additions & 5 deletions test/test.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ describe('Github.User', function() {
});

it('should get user.repos', function(done) {
user.repos(function(err) {
user.repos(function(err, repos) {
should.not.exist(err);
repos.should.be.instanceof(Array);
done();
});
});
Expand All @@ -25,14 +26,13 @@ describe('Github.User', function() {
var options = {
type: 'owner',
sort: 'updated',
per_page: 10, // jscs:ignore
page: 1
per_page: 90, // jscs:ignore
page: 10
};

user.repos(options, function(err, repos) {
repos.should.have.length(10);
should.not.exist(err);

repos.should.be.instanceof(Array);
done();
});
});
Expand Down

0 comments on commit adcfbdd

Please sign in to comment.