From 9a285d0b28b6f5038fbd80e18834feea1706ebb2 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Thu, 5 Oct 2023 19:08:53 +0100 Subject: [PATCH 1/2] fix(audit): spelling error in message --- lib/commands/audit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/audit.js b/lib/commands/audit.js index c95d992c05c99..8c10a36cfee3c 100644 --- a/lib/commands/audit.js +++ b/lib/commands/audit.js @@ -55,7 +55,7 @@ class VerifySignatures { // Didn't find any dependencies that could be verified, e.g. only local // deps, missing version, not on a registry etc. if (!this.auditedWithKeysCount) { - throw new Error('found no dependencies to audit that where installed from ' + + throw new Error('found no dependencies to audit that were installed from ' + 'a supported registry') } From 35202aa7c76dc409ce5f6dfeca130a1912ffe406 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Fri, 6 Oct 2023 10:19:36 +0100 Subject: [PATCH 2/2] test(audit): update test assertions --- test/lib/commands/audit.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/lib/commands/audit.js b/test/lib/commands/audit.js index 25ced6655e654..623c7b6485159 100644 --- a/test/lib/commands/audit.js +++ b/test/lib/commands/audit.js @@ -1393,7 +1393,7 @@ t.test('audit signatures', async t => { await t.rejects( npm.exec('audit', ['signatures']), - /found no dependencies to audit that where installed from a supported registry/ + /found no dependencies to audit that were installed from a supported registry/ ) }) @@ -1424,7 +1424,7 @@ t.test('audit signatures', async t => { await t.rejects( npm.exec('audit', ['signatures']), - /found no dependencies to audit that where installed from a supported registry/ + /found no dependencies to audit that were installed from a supported registry/ ) }) @@ -1766,7 +1766,7 @@ t.test('audit signatures', async t => { await t.rejects( npm.exec('audit', ['signatures']), - /found no dependencies to audit that where installed from a supported registry/ + /found no dependencies to audit that were installed from a supported registry/ ) }) @@ -1787,7 +1787,7 @@ t.test('audit signatures', async t => { await t.rejects( npm.exec('audit', ['signatures']), - /found no dependencies to audit that where installed from a supported registry/ + /found no dependencies to audit that were installed from a supported registry/ ) }) @@ -1815,7 +1815,7 @@ t.test('audit signatures', async t => { await t.rejects( npm.exec('audit', ['signatures']), - /found no dependencies to audit that where installed from a supported registry/ + /found no dependencies to audit that were installed from a supported registry/ ) }) @@ -1844,7 +1844,7 @@ t.test('audit signatures', async t => { await t.rejects( npm.exec('audit', ['signatures']), - /found no dependencies to audit that where installed from a supported registry/ + /found no dependencies to audit that were installed from a supported registry/ ) })