Skip to content

Commit de8bec4

Browse files
committed
test: update test e2e
1 parent 0b4c43f commit de8bec4

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

Diff for: test/app.e2e-spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Test, TestingModule } from '@nestjs/testing';
22
import * as request from 'supertest';
33
import { AppModule } from './../src/app.module';
4-
import { HttpStatus, ValidationPipe } from '@nestjs/common';
4+
import { HttpStatus, INestApplication, ValidationPipe } from '@nestjs/common';
55
import { AccessTokenGuard } from '../src/iam/login/guards/access-token/access-token.guard';
66

77
describe('App (e2e)', () => {
8-
let app;
8+
let app: INestApplication<any>;
99
let accessTokenJwt: string;
1010
let refreshTokenJwt: string;
1111

Diff for: test/change-password/change-password.e2e-spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { MailerService } from '../../src/shared/mailer/mailer.service';
55
import {
66
BadRequestException,
77
HttpStatus,
8+
INestApplication,
89
ValidationPipe,
910
} from '@nestjs/common';
1011
import { AccessTokenGuard } from '../../src/iam/login/guards/access-token/access-token.guard';
@@ -15,7 +16,7 @@ const user = {
1516
};
1617

1718
describe('App (e2e)', () => {
18-
let app;
19+
let app: INestApplication<any>;
1920
let accessTokenJwt: string;
2021
let refreshTokenJwt: string;
2122

Diff for: test/forgot-password/forgot-password.e2e-spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { MailerService } from '../../src/shared/mailer/mailer.service';
55
import {
66
BadRequestException,
77
HttpStatus,
8+
INestApplication,
89
ValidationPipe,
910
} from '@nestjs/common';
1011
import { ForgotPasswordDto } from 'src/iam/forgot-password/dto/forgot-password.dto';
@@ -22,7 +23,7 @@ const createUser = {
2223
};
2324

2425
describe('App (e2e)', () => {
25-
let app;
26+
let app: INestApplication<any>;
2627

2728
beforeAll(async () => {
2829
const moduleFixture: TestingModule = await Test.createTestingModule({

Diff for: test/login/login.e2e-spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ import { AppModule } from './../../src/app.module';
44
import {
55
BadRequestException,
66
HttpStatus,
7+
INestApplication,
78
ValidationPipe,
89
} from '@nestjs/common';
910

1011
describe('App (e2e)', () => {
11-
let app;
12+
let app: INestApplication<any>;
1213

1314
beforeAll(async () => {
1415
const moduleFixture: TestingModule = await Test.createTestingModule({

Diff for: test/register/register.e2e-spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { MailerService } from '../../src/shared/mailer/mailer.service';
55
import {
66
BadRequestException,
77
HttpStatus,
8+
INestApplication,
89
ValidationPipe,
910
} from '@nestjs/common';
1011
import { UserDto } from 'src/users/dto/user.dto';
@@ -18,7 +19,7 @@ const user = {
1819
};
1920

2021
describe('App (e2e)', () => {
21-
let app;
22+
let app: INestApplication<any>;
2223

2324
beforeAll(async () => {
2425
const moduleFixture: TestingModule = await Test.createTestingModule({

Diff for: test/users/users.e2e-spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Test, TestingModule } from '@nestjs/testing';
22
import * as request from 'supertest';
33
import { AppModule } from './../../src/app.module';
44
import { MailerService } from '../../src/shared/mailer/mailer.service';
5-
import { HttpStatus, ValidationPipe } from '@nestjs/common';
5+
import { HttpStatus, INestApplication, ValidationPipe } from '@nestjs/common';
66
import { AccessTokenGuard } from '../../src/iam/login/guards/access-token/access-token.guard';
77

88
const users = [
@@ -22,7 +22,7 @@ const updateProfileUserDto = {
2222
};
2323

2424
describe('App (e2e)', () => {
25-
let app;
25+
let app: INestApplication<any>;
2626
let accessTokenJwt: string;
2727
let refreshTokenJwt: string;
2828

0 commit comments

Comments
 (0)