From 3a7293fd2d35901e19bb1e5bfa185a0cc06e6ae6 Mon Sep 17 00:00:00 2001 From: Angelika Kinas Date: Mon, 3 Jul 2023 15:47:34 +0200 Subject: [PATCH] fix(test): Fix test, remove uncommented properties --- libs/util/app-config/src/lib/app-config.ts | 10 ---------- libs/util/app-config/src/lib/parse-utils.spec.ts | 14 +++++++++----- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/libs/util/app-config/src/lib/app-config.ts b/libs/util/app-config/src/lib/app-config.ts index 393acdc050..6395d53ced 100644 --- a/libs/util/app-config/src/lib/app-config.ts +++ b/libs/util/app-config/src/lib/app-config.ts @@ -212,16 +212,6 @@ export function loadAppConfig() { sort: param.sort, name: param.name, filters: param.filters, - // any: param.any, - // OrgForResource: param.organisation, - // format: param.format, - // documentStandard: param.standard, - // 'th_httpinspireeceuropaeutheme-theme_tree.default': - // param.inspireKeyword, - // 'cl_topic.key': param.topic, - // publicationYearForResource: param.publicationYear, - // isSpatial: param.spatial, - // license: param.license, })), } as any) diff --git a/libs/util/app-config/src/lib/parse-utils.spec.ts b/libs/util/app-config/src/lib/parse-utils.spec.ts index f7a0003dc2..971e831c3d 100644 --- a/libs/util/app-config/src/lib/parse-utils.spec.ts +++ b/libs/util/app-config/src/lib/parse-utils.spec.ts @@ -129,16 +129,20 @@ describe('parse utils', () => { }, }, 'test', - ['mandatory1.path.local'], - ['mandatory1.path.global'], + ['mandatory1'], + [], warnings, errors ) }) - it('returns an object with flattened properties', () => { + it('returns the nested object as is', () => { expect(result).toEqual({ - ['mandatory1.path.local']: '/aaa/bbb', - ['mandatory1.path.global']: 'https://hello', + mandatory1: { + path: { + local: '/aaa/bbb', + global: 'https://hello', + }, + }, }) }) })