Skip to content

Commit

Permalink
πŸ”Š clean up test output
Browse files Browse the repository at this point in the history
  • Loading branch information
ctcpip committed Feb 10, 2024
1 parent f56da03 commit 2c75124
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions security/test/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,18 @@ function test(version, patched) {

for (const cve of cveMap) {
if(cve[1].versions.includes(version)) {
const status = d.querySelector(`#CVE-${cve[0]} .cve__footer-status`).textContent;
console.log(status);
const cveName = `CVE-${cve[0]}`
const status = d.querySelector(`#${cveName} .cve__footer-status`).textContent;

if(status.startsWith(`Can't`)) {
console.log(`${cveName.padEnd(14)} - ${status}`);
}
else {
console.log(status
.replace('CVE', `${cveName.padEnd(14)} - `)
);
}

}
}

Expand Down

0 comments on commit 2c75124

Please sign in to comment.