refactor: Use token without string interpolation for getCurrentUser test
Co-authored-by: Ali BARIN <ali.barin53@gmail.com>
This commit is contained in:
@@ -46,7 +46,7 @@ describe('getCurrentUser', () => {
|
|||||||
token = createAuthTokenByUserId(currentUser.id);
|
token = createAuthTokenByUserId(currentUser.id);
|
||||||
requestObject = request(app)
|
requestObject = request(app)
|
||||||
.post('/graphql')
|
.post('/graphql')
|
||||||
.set('Authorization', `${token}`);
|
.set('Authorization', token);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return user data', async () => {
|
it('should return user data', async () => {
|
||||||
|
Reference in New Issue
Block a user