config test

This commit is contained in:
Aiden McClelland
2020-12-08 11:55:39 -07:00
committed by Keagan McClelland
parent 968b94e81f
commit 47e3361c4f
2 changed files with 264 additions and 1 deletions

View File

@@ -454,7 +454,7 @@ function isEqual (uniqueBy: UniqueBy, lhs: ConfigCursor<'object'>, rhs: ConfigCu
}
}
function displayUniqueBy(uniqueBy: UniqueBy, spec: ValueSpecObject | ValueSpecUnion, value: object): string {
export function displayUniqueBy(uniqueBy: UniqueBy, spec: ValueSpecObject | ValueSpecUnion, value: object): string {
if (typeof uniqueBy === 'string') {
if (spec.type === 'object') {
return spec.spec[uniqueBy].name