Skip to content

Commit 5f03874

Browse files
fixes assertions in channels.js
Signed-off-by: Abhijit Gadgil <agadgil@progress.com>
1 parent 1629373 commit 5f03874

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

test/builder-api/src/channels.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -445,18 +445,13 @@ describe('Channels API', function () {
445445
.expect(200)
446446
.end(function (err, res) {
447447
expect(res.body.range_start).to.equal(0);
448-
expect(res.body.range_end).to.equal(3);
449-
expect(res.body.total_count).to.equal(4);
450-
expect(res.body.data.length).to.equal(4);
448+
expect(res.body.range_end).to.equal(1);
449+
expect(res.body.total_count).to.equal(2);
450+
expect(res.body.data.length).to.equal(2);
451451
expect(res.body.data[0].origin).to.equal('neurosis');
452452
expect(res.body.data[0].name).to.equal('testapp');
453453
expect(res.body.data[0].version).to.equal('0.1.3');
454454
expect(res.body.data[0].release).to.equal('20190327162537');
455-
expect(res.body.data[1].origin).to.equal('neurosis');
456-
expect(res.body.data[1].name).to.equal('testapp');
457-
expect(res.body.data[1].version).to.equal('0.1.3');
458-
expect(res.body.data[1].release).to.equal('20181116180420');
459-
expect(res.body.data[1].platforms[0]).to.equal('x86_64-linux-kernel2');
460455
done(err);
461456
});
462457
});

0 commit comments

Comments
 (0)