Skip to content

Commit f39e839

Browse files
committed
feat(CSAF2.1): change compareZonedDateTimes import
1 parent ebf10d3 commit f39e839

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ export const recommendedTest_6_2_16: DocumentTest
459459
export const recommendedTest_6_2_17: DocumentTest
460460
export const recommendedTest_6_2_18: DocumentTest
461461
export const recommendedTest_6_2_22: DocumentTest
462+
export const recommendedTest_6_2_23: DocumentTest
462463
```
463464
464465
[(back to top)](#bsi-csaf-validator-lib)

csaf_2_1/recommendedTests/recommendedTest_6_2_41.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Ajv from 'ajv/dist/jtd.js'
2-
import { compareZonedDateTimes } from '../../lib/shared/dateHelper.js'
2+
import { compareZonedDateTimes } from '../dateHelper.js'
33

44
const ajv = new Ajv()
55

tests/csaf_2_1/recommendedTest_6_2_41.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe('recommendedTest_6_2_41', function () {
4141
)
4242
})
4343

44-
it('skips empty metrics object', function () {
44+
it('Skips vulnerabilities without metrics object', function () {
4545
assert.equal(
4646
recommendedTest_6_2_41({
4747
document: {
@@ -50,13 +50,7 @@ describe('recommendedTest_6_2_41', function () {
5050
status: 'final',
5151
},
5252
},
53-
vulnerabilities: [
54-
{
55-
metrics: [
56-
{}, // should be ignored
57-
],
58-
},
59-
],
53+
vulnerabilities: [{}],
6054
}).warnings.length,
6155
0
6256
)

0 commit comments

Comments
 (0)