Fix jwt-token
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user