mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 15:44:45 -04:00
Migrate public media API E2E test to global TestSetup
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
21f4ffe2df
commit
1bc3fbb449
2 changed files with 32 additions and 67 deletions
|
@ -3,8 +3,8 @@
|
|||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
import { INestApplication } from '@nestjs/common';
|
||||
import { ConfigModule, ConfigService } from '@nestjs/config';
|
||||
import { NestExpressApplication } from '@nestjs/platform-express';
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
|
||||
|
@ -32,7 +32,7 @@ import { UsersService } from '../src/users/users.service';
|
|||
|
||||
export class TestSetup {
|
||||
moduleRef: TestingModule;
|
||||
app: INestApplication;
|
||||
app: NestExpressApplication;
|
||||
|
||||
userService: UsersService;
|
||||
configService: ConfigService;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue