refactor(test): rename variable for INestApplicationContext

This commit is contained in:
syuilo
2023-03-12 20:57:01 +09:00
parent ba98abc97b
commit a43398ce1d
13 changed files with 39 additions and 39 deletions

View File

@@ -6,7 +6,7 @@ import { connectStream, signup, api, post, startServer, initTestDb, waitFire } f
import type { INestApplicationContext } from '@nestjs/common';
describe('Streaming', () => {
let p: INestApplicationContext;
let app: INestApplicationContext;
let Followings: any;
const follow = async (follower: any, followee: any) => {
@@ -38,7 +38,7 @@ describe('Streaming', () => {
let list: any;
beforeAll(async () => {
p = await startServer();
app = await startServer();
const connection = await initTestDb(true);
Followings = connection.getRepository(Following);
@@ -74,7 +74,7 @@ describe('Streaming', () => {
}, 1000 * 60 * 2);
afterAll(async () => {
await p.close();
await app.close();
});
describe('Events', () => {