Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(audit): spelling error in message #6873

Merged
merged 2 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading