Skip to content

Commit 068edd8

Browse files
committed
Fix event tests
1 parent 77a3b95 commit 068edd8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/event/eventReadTest.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ describe("event read tests", function() {
308308
.end(done);
309309
});
310310

311-
it("should read teams in event", function(done) {
311+
it("should read teams page in event", function(done) {
312312
mockTokenWithPermission('READ_EVENT_ALL');
313313

314314
var eventId = 1;
@@ -342,7 +342,7 @@ describe("event read tests", function() {
342342
.resolves(1);
343343

344344
request(app)
345-
.get('/api/events/1/teams')
345+
.get('/api/events/1/teams?page=0')
346346
.set('Accept', 'application/json')
347347
.set('Authorization', 'Bearer 12345')
348348
.expect(200)
@@ -428,7 +428,7 @@ describe("event read tests", function() {
428428
.end(done);
429429
});
430430

431-
it("should read teams in event with team access", function(done) {
431+
it("should read teams page in event with team access", function(done) {
432432
mockTokenWithPermission('');
433433

434434
var eventId = 1;
@@ -469,7 +469,7 @@ describe("event read tests", function() {
469469
.resolves(1);
470470

471471
request(app)
472-
.get('/api/events/1/teams')
472+
.get('/api/events/1/teams?page=0')
473473
.set('Accept', 'application/json')
474474
.set('Authorization', 'Bearer 12345')
475475
.query({populate: 'users'})

0 commit comments

Comments
 (0)