We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aabd18f commit 10c24feCopy full SHA for 10c24fe
cvss40.test.js
@@ -19,11 +19,9 @@ describe('CVSS 4.0', () => {
19
return data;
20
}, {});
21
22
- const randomlyPickFrom = (count, array) => array.slice(0, count).sort(() => 0.5 - Math.random());
23
Object.entries(testData).forEach(([fileName, vectorScores]) => {
24
- const count = 10000;
25
- it(`should calculate ${count} random scores in ${fileName} correctly`, () => {
26
- randomlyPickFrom(count, vectorScores).forEach(({ vector, score }) => {
+ it(`should calculate scores in ${fileName} correctly`, () => {
+ vectorScores.forEach(({ vector, score }) => {
27
expect(new CVSS40(vector).score).toBe(score);
28
});
29
0 commit comments