Skip to content

Commit

Permalink
#955 fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaigneau5 committed Jan 20, 2023
1 parent af383d0 commit 9d06760
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/unit-tests/cve/cveCnaContainerCreateTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ describe('Testing the POST /cve/:id/cna endpoint in Cve Controller', () => {

expect(res).to.have.status(200)
expect(res).to.have.property('body').and.to.be.a('object')
expect(res.body.message).to.equal(`${cveIdReserved} record was successfully created.`)
expect(res.body.message).to.include(`${cveIdReserved} record was successfully created.`)
done()
})
})
Expand All @@ -249,7 +249,7 @@ describe('Testing the POST /cve/:id/cna endpoint in Cve Controller', () => {

expect(res).to.have.status(200)
expect(res).to.have.property('body').and.to.be.a('object')
expect(res.body.message).to.equal(`${cveIdReserved} record was successfully created.`)
expect(res.body.message).to.include(`${cveIdReserved} record was successfully created.`)
done()
})
})
Expand Down
4 changes: 2 additions & 2 deletions test/unit-tests/cve/cveCnaContainerUpdateTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ describe('Testing the PUT /cve/:id/cna endpoint in Cve Controller', () => {

expect(res).to.have.status(200)
expect(res).to.have.property('body').and.to.be.a('object')
expect(res.body.message).to.equal(`${cveIdPublished5} record was successfully updated.`)
expect(res.body.message).to.include(`${cveIdPublished5} record was successfully updated.`)
done()
})
})
Expand All @@ -280,7 +280,7 @@ describe('Testing the PUT /cve/:id/cna endpoint in Cve Controller', () => {

expect(res).to.have.status(200)
expect(res).to.have.property('body').and.to.be.a('object')
expect(res.body.message).to.equal(`${cveIdPublished5} record was successfully updated.`)
expect(res.body.message).to.include(`${cveIdPublished5} record was successfully updated.`)
expect(res.body.created).to.not.equal(cveRecordPublished)
done()
})
Expand Down

0 comments on commit 9d06760

Please sign in to comment.