Skip to content

Commit 2bddbf7

Browse files
feat(CSAF2.1): #199 adapt test 6.3.4 for CSAF 2.1 - add test 'only runs on relevant documents'
1 parent 124d894 commit 2bddbf7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

csaf_2_1/informativeTests/informativeTest_6_3_4.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const inputSchema = /** @type {const} */ ({
2424
const validateInput = ajv.compile(inputSchema)
2525

2626
/**
27+
* It MUST be tested that at least one CWE is given.
2728
* @param {unknown} doc
2829
* @returns
2930
*/
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import assert from 'node:assert'
2+
import { informativeTest_6_3_4 } from '../../csaf_2_1/informativeTests.js'
3+
4+
describe('informativeTest_6_3_4', function () {
5+
it('only runs on relevant documents', function () {
6+
assert.equal(informativeTest_6_3_4({ document: 'mydoc' }).infos.length, 0)
7+
})
8+
})

0 commit comments

Comments
 (0)