Skip to content

Commit

Permalink
fix(audit): spelling error in message (#6873)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Oct 6, 2023
1 parent 2e4b4ad commit 0cfe9de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/commands/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}

Expand Down
12 changes: 6 additions & 6 deletions test/lib/commands/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/
)
})

Expand Down Expand Up @@ -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/
)
})

Expand Down Expand Up @@ -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/
)
})

Expand All @@ -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/
)
})

Expand Down Expand Up @@ -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/
)
})

Expand Down Expand Up @@ -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/
)
})

Expand Down

0 comments on commit 0cfe9de

Please sign in to comment.