diff --git a/server/tests/routes/detectors.test.js b/server/tests/routes/detectors.test.js index 74959bb..227beb7 100644 --- a/server/tests/routes/detectors.test.js +++ b/server/tests/routes/detectors.test.js @@ -414,7 +414,8 @@ describe('Detectors Routes', () => { expect(response.status).to.equal(400); 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 () => {