Skip to content

Commit

Permalink
fix(test): fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
serge1peshcoff committed Mar 13, 2020
1 parent 2c53342 commit 2eddf49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/api/events-creation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('Events creation', () => {
application_ends: '2017-12-05 15:00',
starts: '2017-12-11 15:00',
ends: '2017-12-14 12:00',
type: 'es',
type: 'cultural',
organizing_bodies: [{ body_id: user.bodies[0].id }],
organizers: [{ user_id: user.id }]
}
Expand Down Expand Up @@ -71,7 +71,7 @@ describe('Events creation', () => {
application_ends: '2017-12-05 15:00',
starts: '2017-12-11 15:00',
ends: '2017-12-14 12:00',
type: 'es',
type: 'cultural',
description: 'A training event to boost your self-confidence and teamworking skills',
max_participants: 22,
questions: [
Expand Down Expand Up @@ -127,7 +127,7 @@ describe('Events creation', () => {
application_ends: '2017-12-05 15:00',
starts: '2017-12-11 15:00',
ends: '2017-12-14 12:00',
type: 'es',
type: 'cultural',
organizers: [{ user_id: user.id }],
organizing_bodies: [{ body_id: user.bodies[0].id }],
status: 'published'
Expand Down
4 changes: 2 additions & 2 deletions test/api/events-listing.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ describe('Events listing', () => {
const event = await generator.createEvent({ status: 'published', type: 'training' });

const res = await request({
uri: '/?type[]=es',
uri: '/?type[]=training',
method: 'GET',
headers: { 'X-Auth-Token': 'blablabla' }
});
Expand All @@ -210,7 +210,7 @@ describe('Events listing', () => {
const event = await generator.createEvent({ status: 'published', type: 'training' });

const res = await request({
uri: '/?type=es',
uri: '/?type=training',
method: 'GET',
headers: { 'X-Auth-Token': 'blablabla' }
});
Expand Down

0 comments on commit 2eddf49

Please sign in to comment.