mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Rename verifiedPackages to totalPackages, fix e2e tests
This commit is contained in:
parent
e4c40330f7
commit
378b0ac7c9
11 changed files with 89 additions and 59 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue