refactor: Use token without string interpolation for getCurrentUser test

Co-authored-by: Ali BARIN <ali.barin53@gmail.com>
This commit is contained in:
Ömer Faruk Aydın
2023-10-13 11:24:54 +02:00
committed by GitHub
parent 5831bf9653
commit 5f335ef5b3

View File

@@ -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 () => {