mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-29 05:52:46 +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', () => {
|
describe('FrontendConfigService', () => {
|
||||||
|
const domain = 'http://md.example.com';
|
||||||
const emptyAuthConfig: AuthConfig = {
|
const emptyAuthConfig: AuthConfig = {
|
||||||
email: {
|
email: {
|
||||||
enableLogin: false,
|
enableLogin: false,
|
||||||
|
@ -183,8 +184,8 @@ describe('FrontendConfigService', () => {
|
||||||
]) {
|
]) {
|
||||||
it(`combination #${index} works`, async () => {
|
it(`combination #${index} works`, async () => {
|
||||||
const appConfig: AppConfig = {
|
const appConfig: AppConfig = {
|
||||||
domain: 'http://md.example.com',
|
domain: domain,
|
||||||
rendererOrigin: renderOrigin,
|
rendererOrigin: renderOrigin ?? domain,
|
||||||
port: 3000,
|
port: 3000,
|
||||||
loglevel: Loglevel.ERROR,
|
loglevel: Loglevel.ERROR,
|
||||||
forbiddenNoteIds: [],
|
forbiddenNoteIds: [],
|
||||||
|
|
Loading…
Reference in a new issue