Skip to content

Commit

Permalink
fix(test): Fix test, remove uncommented properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas authored and jahow committed Jul 4, 2023
1 parent 09fb518 commit 3a7293f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
10 changes: 0 additions & 10 deletions libs/util/app-config/src/lib/app-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
14 changes: 9 additions & 5 deletions libs/util/app-config/src/lib/parse-utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
},
})
})
})
Expand Down

0 comments on commit 3a7293f

Please sign in to comment.