Phase 3: News CRUD — model, endpoints, ownership, интеграционные тесты
This commit is contained in:
@@ -182,7 +182,7 @@ describe('Auth', () => {
|
||||
const regRes: Response = await request(app).post('/api/auth/register').send(creds);
|
||||
const token = tokenOf(regRes.body);
|
||||
expect(token).toBeDefined();
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions -- token проверен
|
||||
|
||||
const authHeader = `Bearer ${token}`;
|
||||
|
||||
const res = await request(app)
|
||||
|
||||
Reference in New Issue
Block a user