Skip to content

Commit

Permalink
fix(test): fixed flapping tests
Browse files Browse the repository at this point in the history
  • Loading branch information
serge1peshcoff committed Sep 9, 2019
1 parent a7c83e3 commit 21a5172
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/api/events-editing.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,14 @@ describe('Events editing', () => {
});

it('should hide an event from / GET but keep it for /single GET after /single DELETE', async () => {
await request({
const deleteRequest = await request({
uri: '/single/' + event.id,
method: 'DELETE',
headers: { 'X-Auth-Token': 'blablabla' }
});

expect(deleteRequest.statusCode).toEqual(200);

const res = await request({
uri: '/single/' + event.id,
method: 'GET',
Expand Down
22 changes: 21 additions & 1 deletion test/assets/oms-core-permissions-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,5 +290,25 @@
"circles": null,
"always_assigned": false,
"action": "approve_event"
}]
}, {
"scope": "global",
"object": "european",
"id": 71,
"filters": [],
"description": "Approve event",
"combined": "global:approve_event:european",
"circles": null,
"always_assigned": false,
"action": "approve_event"
}, {
"scope": "global",
"object": "european",
"id": 71,
"filters": [],
"description": "Manage event",
"combined": "global:manage_event:european",
"circles": null,
"always_assigned": false,
"action": "manage_event"
}]
}

0 comments on commit 21a5172

Please sign in to comment.