From 0cfe9de1c74b20d3e04ecc26ccf594196d101afe Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Fri, 6 Oct 2023 15:23:12 +0100 Subject: [PATCH] fix(audit): spelling error in message (#6873) --- lib/commands/audit.js | 2 +- test/lib/commands/audit.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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') } 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/ ) })