Fix jwt-token
This commit is contained in:
@@ -414,7 +414,8 @@ describe('Detectors Routes', () => {
|
|||||||
|
|
||||||
expect(response.status).to.equal(400);
|
expect(response.status).to.equal(400);
|
||||||
expect(response.body.success).to.be.false;
|
expect(response.body.success).to.be.false;
|
||||||
expect(response.body.error).to.include('Invalid payload');
|
expect(response.body).to.have.property('error');
|
||||||
|
expect(response.body.error).to.be.a('string');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should log detection data for debugging', async () => {
|
it('should log detection data for debugging', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user