Skip to content

Commit 0c64ba1

Browse files
committed
Updates Authentication Tests
This commit updates authentication tests to ensure the correct error code is thrown when login fails. Signed-off-by: Lui de la Parra <Lui@mutesymphony.com>
1 parent 838ff77 commit 0c64ba1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/authentication.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ describe('Authentication Capabilities', () => {
143143
.catch(error => error)
144144
)
145145
.to.eventually.be.an('object')
146-
.that.has.all.keys('code', 'message');
146+
.that.has.all.keys('code', 'message')
147+
.and.property('code')
148+
.to.equal('212');
147149
});
148150

149151
it('should reject if it can not create a new data api session', () => {

0 commit comments

Comments
 (0)