chore: strengthen backend eslint profile
This commit is contained in:
@@ -4,13 +4,14 @@ import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { PinoLogger } from 'nestjs-pino';
|
||||
import request from 'supertest';
|
||||
import { App } from 'supertest/types';
|
||||
|
||||
import { AppModule } from '../src/app.module';
|
||||
import { StructuredLogger } from '../src/common/logging/structured-logger.service';
|
||||
import { configureApp } from '../src/main';
|
||||
import { AuthService } from '../src/modules/auth/application/auth.service';
|
||||
import { PrismaService } from '../src/prisma/prisma.service';
|
||||
|
||||
type Authentication = { user: { email: string }; accessToken: string };
|
||||
type Authentication = { accessToken: string; user: { email: string } };
|
||||
type Problem = { code: string };
|
||||
|
||||
describe('Authentication (e2e)', () => {
|
||||
@@ -181,7 +182,7 @@ describe('Authentication (e2e)', () => {
|
||||
);
|
||||
barrier.mockRestore();
|
||||
expect(arrived).toBe(2);
|
||||
expect(responses.map((response) => response.status).sort()).toEqual([
|
||||
expect(responses.map((response) => response.status).sort((a, b) => a - b)).toEqual([
|
||||
200, 401,
|
||||
]);
|
||||
const winner = responses.find((response) => response.status === 200);
|
||||
|
||||
Reference in New Issue
Block a user