mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
test(setup): set HD_DOMAIN
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
7256717611
commit
4ade25036e
1 changed files with 3 additions and 1 deletions
|
@ -20,7 +20,7 @@ import { AuthService } from '../src/auth/auth.service';
|
||||||
import { MockAuthGuard } from '../src/auth/mock-auth.guard';
|
import { MockAuthGuard } from '../src/auth/mock-auth.guard';
|
||||||
import { TokenAuthGuard } from '../src/auth/token.strategy';
|
import { TokenAuthGuard } from '../src/auth/token.strategy';
|
||||||
import { AuthorsModule } from '../src/authors/authors.module';
|
import { AuthorsModule } from '../src/authors/authors.module';
|
||||||
import { AppConfig } from '../src/config/app.config';
|
import appConfig, { AppConfig } from '../src/config/app.config';
|
||||||
import { AuthConfig } from '../src/config/auth.config';
|
import { AuthConfig } from '../src/config/auth.config';
|
||||||
import { CustomizationConfig } from '../src/config/customization.config';
|
import { CustomizationConfig } from '../src/config/customization.config';
|
||||||
import { DatabaseConfig } from '../src/config/database.config';
|
import { DatabaseConfig } from '../src/config/database.config';
|
||||||
|
@ -236,6 +236,8 @@ export class TestSetupBuilder {
|
||||||
module: PrivateApiModule,
|
module: PrivateApiModule,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
process.env.HD_DOMAIN =
|
||||||
|
'https://md-' + testSetupBuilder.testId + '.example.com';
|
||||||
testSetupBuilder.testingModuleBuilder = Test.createTestingModule({
|
testSetupBuilder.testingModuleBuilder = Test.createTestingModule({
|
||||||
imports: [
|
imports: [
|
||||||
RouterModule.forRoutes(routes),
|
RouterModule.forRoutes(routes),
|
||||||
|
|
Loading…
Reference in a new issue