Fix jwt-token

This commit is contained in:
2025-09-15 21:29:45 +02:00
parent aa930270d4
commit d641df8aa3
3 changed files with 43 additions and 8 deletions

View File

@@ -77,11 +77,10 @@ describe('IP Restriction Middleware', () => {
await ipRestriction.checkIPRestriction(req, res, next);
expect(res.statusCode).to.equal(403);
expect(res.data).to.deep.equal({
success: false,
message: 'Access denied: IP address not allowed',
ip: '192.168.2.1'
});
expect(res.data).to.have.property('success', false);
expect(res.data).to.have.property('message');
expect(res.data).to.have.property('code', 'IP_RESTRICTED');
expect(res.data).to.have.property('timestamp');
});
it('should allow access when tenant not found', async () => {