Skip to content

Commit e18ab11

Browse files
wbioIlya Radchenko
authored andcommitted
Stop repos from being listed twice (#53)
* Starting page loop at 1 instead of 0 * Updating test
1 parent cf3b822 commit e18ab11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function get(config, uri, done) {
5959

6060
if (res.headers.link) {
6161
var numberOfPages = parseLinkHeader(res.headers.link).last.page;
62-
var i = 0;
62+
var i = 1;
6363

6464
async.whilst(
6565
function() {

test/test_webapp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ describe('gitlab webapp', function () {
293293
webapp.listRepos(config, function (err, repos) {
294294
expect(err).to.not.be.ok();
295295
expect(repos).to.be.an('array');
296-
expect(repos.length).to.eql(6);
296+
expect(repos.length).to.eql(3);
297297
done();
298298
});
299299
});

0 commit comments

Comments
 (0)