Skip to content

Commit b9774d7

Browse files
feat(CSAF2.1): #403 add recommended test 6.2.39.2 - add info on no language specific translation to ctx.infos
1 parent 3df78cd commit b9774d7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

csaf_2_1/recommendedTests/recommendedTest_6_2_39_2.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ export function recommendedTest_6_2_39_2(doc) {
5858
The `ctx` variable holds the state that is accumulated during the test run and is
5959
finally returned by the function.
6060
*/
61+
/** @type { {warnings: Array<{ message: string; instancePath: string }>;
62+
* infos: Array<{ message: string; instancePath: string }>}} */
6163
const ctx = {
62-
warnings:
63-
/** @type {Array<{ instancePath: string; message: string }>} */ ([]),
64+
warnings: [],
65+
infos: [],
6466
}
6567

6668
const noteCategory = 'description'
@@ -74,7 +76,7 @@ export function recommendedTest_6_2_39_2(doc) {
7476
'reasoning_for_withdrawal'
7577
)
7678
if (!withdrawalInDocLang) {
77-
ctx.warnings.push({
79+
ctx.infos.push({
7880
instancePath: '/document/notes',
7981
message:
8082
'no language specific translation for "Reasoning for Withdrawal" has been recorded',

0 commit comments

Comments
 (0)