File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -27,3 +27,4 @@ export { recommendedTest_6_2_8 } from './recommendedTests/recommendedTest_6_2_8.
27
27
export { recommendedTest_6_2_9 } from './recommendedTests/recommendedTest_6_2_9.js'
28
28
export { recommendedTest_6_2_3 } from './recommendedTests/recommendedTest_6_2_3.js'
29
29
export { recommendedTest_6_2_22 } from './recommendedTests/recommendedTest_6_2_22.js'
30
+ export { recommendedTest_6_2_37 } from './recommendedTests/recommendedTest_6_2_37.js'
Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ const inputSchema = /** @type {const} */ ({
38
38
const validate = ajv . compile ( inputSchema )
39
39
40
40
/**
41
- * This implements the optional test 6.2.37 of the CSAF 2.1 standard.
41
+ * This implements the recommended test 6.2.37 of the CSAF 2.1 standard.
42
42
*
43
43
* @param {any } doc
44
44
*/
45
- export function optionalTest_6_2_37 ( doc ) {
45
+ export function recommendedTest_6_2_37 ( doc ) {
46
46
/** @type {Array<{ message: string; instancePath: string }> } */
47
47
const warnings = [ ]
48
48
const context = { warnings }
Original file line number Diff line number Diff line change 1
1
import assert from 'node:assert'
2
- import { optionalTest_6_2_37 } from '../../csaf_2_1/optionalTests .js'
2
+ import { recommendedTest_6_2_37 } from '../../csaf_2_1/recommendedTests .js'
3
3
4
- describe ( 'optionalTest_6_2_37 ' , function ( ) {
4
+ describe ( 'recommendedTest_6_2_37 ' , function ( ) {
5
5
it ( 'only runs on relevant documents' , function ( ) {
6
6
assert . equal (
7
- optionalTest_6_2_37 ( { vulnerabilities : 'mydoc' } ) . warnings . length ,
7
+ recommendedTest_6_2_37 ( { vulnerabilities : 'mydoc' } ) . warnings . length ,
8
8
0
9
9
)
10
10
} )
You can’t perform that action at this time.
0 commit comments