Skip to content

Commit 4444a85

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

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

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)