Skip to content

Commit

Permalink
#1258 small changes to negative tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-flores committed Jul 29, 2024
1 parent f98b83d commit a660d97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration-tests/org/putOrgTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ describe('Testing org put endpoint', () => {
.then((res, err) => {
expect(res).to.have.status(401)
expect(err).to.be.undefined
expect(res.body).to.haveOwnProperty('error')
expect(res.body.error).to.equal('UNAUTHORIZED')
})
})
it('Fails update made by a non-secretariat org to a secretariat', async () => {
Expand All @@ -99,6 +101,8 @@ describe('Testing org put endpoint', () => {
.then((res, err) => {
expect(res).to.have.status(401)
expect(err).to.be.undefined
expect(res.body).to.haveOwnProperty('error')
expect(res.body.error).to.equal('UNAUTHORIZED')
})
})
})
Expand Down

0 comments on commit a660d97

Please sign in to comment.