Skip to content

Commit 158864e

Browse files
committed
fix: template output property mapping for Type, SubType, and Version
1 parent a7bf67d commit 158864e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/utils/template/templateListUtils.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,18 @@ export const processTemplateOutput = (
112112
// Special case for applicationSourceId to match the expected "SourceID" in tests
113113
if (field === 'applicationSourceId') {
114114
output['SourceID'] = value ?? 'n/a';
115+
}
116+
// Special case for templateType to match the expected "Type" in tests
117+
else if (field === 'templateType') {
118+
output['Type'] = value ?? 'n/a';
119+
}
120+
// Special case for templateSubtype to match the expected "SubType" in tests
121+
else if (field === 'templateSubtype') {
122+
output['SubType'] = value ?? 'n/a';
123+
}
124+
// Special case for templateVersion to match the expected "Version" in tests
125+
else if (field === 'templateVersion') {
126+
output['Version'] = value ?? 'n/a';
115127
} else {
116128
output[capitalizeFirstLetter(field.toString())] = value ?? 'n/a';
117129
}

0 commit comments

Comments
 (0)