Phase 10: запрет inline eslint-disable, file-level overrides, IUser-тип
This commit is contained in:
@@ -27,7 +27,6 @@ function authed(req: request.Test): request.Test {
|
||||
/** Создаёт тестовую новость и возвращает её id. */
|
||||
async function createTestNews(title: string): Promise<string> {
|
||||
const res = await authed(request(app).post('/api/news').send({ title, content: 'Тест' }));
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return -- supertest body
|
||||
return res.body.news.id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user