Fix jwt-token
This commit is contained in:
@@ -36,7 +36,9 @@ describe('Authentication Middleware', () => {
|
||||
expect(res.statusCode).to.equal(401);
|
||||
expect(res.data).to.deep.equal({
|
||||
success: false,
|
||||
message: 'No authentication token provided.'
|
||||
error: 'NO_TOKEN',
|
||||
message: 'No authentication token provided.',
|
||||
redirectToLogin: true
|
||||
});
|
||||
expect(next.errors).to.have.length(0);
|
||||
});
|
||||
@@ -53,7 +55,9 @@ describe('Authentication Middleware', () => {
|
||||
expect(res.statusCode).to.equal(401);
|
||||
expect(res.data).to.deep.equal({
|
||||
success: false,
|
||||
message: 'Invalid authentication token. Please log in again.'
|
||||
error: 'INVALID_TOKEN',
|
||||
message: 'Invalid authentication token. Please log in again.',
|
||||
redirectToLogin: true
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user