Skip to content

Commit a660d97

Browse files
author
jack-flores
committed
#1258 small changes to negative tests
1 parent f98b83d commit a660d97

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/integration-tests/org/putOrgTest.js

+4
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ describe('Testing org put endpoint', () => {
8989
.then((res, err) => {
9090
expect(res).to.have.status(401)
9191
expect(err).to.be.undefined
92+
expect(res.body).to.haveOwnProperty('error')
93+
expect(res.body.error).to.equal('UNAUTHORIZED')
9294
})
9395
})
9496
it('Fails update made by a non-secretariat org to a secretariat', async () => {
@@ -99,6 +101,8 @@ describe('Testing org put endpoint', () => {
99101
.then((res, err) => {
100102
expect(res).to.have.status(401)
101103
expect(err).to.be.undefined
104+
expect(res.body).to.haveOwnProperty('error')
105+
expect(res.body.error).to.equal('UNAUTHORIZED')
102106
})
103107
})
104108
})

0 commit comments

Comments
 (0)