mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-28 15:30:49 +00:00
FrontendConfig: Fix unit test
Emulate the behaviour of the new app config: If renderOrigin is undefined instead use domain. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
662d428e3c
commit
1edc0d87c5
1 changed files with 3 additions and 2 deletions
|
@ -21,6 +21,7 @@ import { Loglevel } from '../config/loglevel.enum';
|
|||
*/
|
||||
|
||||
describe('FrontendConfigService', () => {
|
||||
const domain = 'http://md.example.com';
|
||||
const emptyAuthConfig: AuthConfig = {
|
||||
email: {
|
||||
enableLogin: false,
|
||||
|
@ -183,8 +184,8 @@ describe('FrontendConfigService', () => {
|
|||
]) {
|
||||
it(`combination #${index} works`, async () => {
|
||||
const appConfig: AppConfig = {
|
||||
domain: 'http://md.example.com',
|
||||
rendererOrigin: renderOrigin,
|
||||
domain: domain,
|
||||
rendererOrigin: renderOrigin ?? domain,
|
||||
port: 3000,
|
||||
loglevel: Loglevel.ERROR,
|
||||
forbiddenNoteIds: [],
|
||||
|
|
Loading…
Reference in a new issue