Skip to content

Commit

Permalink
test update
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaivasilev12 committed May 22, 2021
1 parent fc54be7 commit b7a9dbc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/endpoints.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ describe('/Test endpoints according to the user flow', () => {
.put(`/api/projects/addcolumn/${project.body._id}`)
.set("Authorization", `bearer ${userLogin.body.token}`)
.send({
col_name: 'testColumn'
col_name: 'testColumn',
userId: userLogin.body.id
})
column.should.have.status(200);
column.body.message.should.equal('Column was ADDED successfully!');
Expand All @@ -86,7 +87,7 @@ describe('/Test endpoints according to the user flow', () => {

it('it should delete a project', async () => {
deletedProject = await chai.request(server)
.delete(`/api/projects/${project.body._id}`)
.delete(`/api/projects/${project.body._id}?userId=${userLogin.body.id}`)
.set({ 'Authorization': `bearer ${userLogin.body.token}` })
deletedProject.should.have.status(200);
})
Expand Down

0 comments on commit b7a9dbc

Please sign in to comment.