mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -04: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
8bf5aa77e3
commit
265f3095e4
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…
Add table
Add a link
Reference in a new issue