Rename verifiedPackages to totalPackages, fix e2e tests

This commit is contained in:
Sander Declerck 2025-11-05 12:19:47 +01:00
parent e4c40330f7
commit 378b0ac7c9
No known key found for this signature in database
11 changed files with 89 additions and 59 deletions

View file

@ -20,7 +20,7 @@ import {
/**
* @typedef {Object} AuditStats
* @property {number} verifiedPackages
* @property {number} totalPackages
* @property {number} safePackages
* @property {number} malwarePackages
*/
@ -29,7 +29,7 @@ import {
* @type AuditStats
*/
const auditStats = {
verifiedPackages: 0,
totalPackages: 0,
safePackages: 0,
malwarePackages: 0,
};
@ -77,7 +77,7 @@ export async function auditChanges(changes) {
allowedChanges.push(change);
}
auditStats.verifiedPackages += 1;
auditStats.totalPackages += 1;
}
const auditResults = {