Skip to content

Commit 0cfe9de

Browse files
authored
fix(audit): spelling error in message (#6873)
1 parent 2e4b4ad commit 0cfe9de

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/commands/audit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class VerifySignatures {
5555
// Didn't find any dependencies that could be verified, e.g. only local
5656
// deps, missing version, not on a registry etc.
5757
if (!this.auditedWithKeysCount) {
58-
throw new Error('found no dependencies to audit that where installed from ' +
58+
throw new Error('found no dependencies to audit that were installed from ' +
5959
'a supported registry')
6060
}
6161

test/lib/commands/audit.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ t.test('audit signatures', async t => {
13931393

13941394
await t.rejects(
13951395
npm.exec('audit', ['signatures']),
1396-
/found no dependencies to audit that where installed from a supported registry/
1396+
/found no dependencies to audit that were installed from a supported registry/
13971397
)
13981398
})
13991399

@@ -1424,7 +1424,7 @@ t.test('audit signatures', async t => {
14241424

14251425
await t.rejects(
14261426
npm.exec('audit', ['signatures']),
1427-
/found no dependencies to audit that where installed from a supported registry/
1427+
/found no dependencies to audit that were installed from a supported registry/
14281428
)
14291429
})
14301430

@@ -1766,7 +1766,7 @@ t.test('audit signatures', async t => {
17661766

17671767
await t.rejects(
17681768
npm.exec('audit', ['signatures']),
1769-
/found no dependencies to audit that where installed from a supported registry/
1769+
/found no dependencies to audit that were installed from a supported registry/
17701770
)
17711771
})
17721772

@@ -1787,7 +1787,7 @@ t.test('audit signatures', async t => {
17871787

17881788
await t.rejects(
17891789
npm.exec('audit', ['signatures']),
1790-
/found no dependencies to audit that where installed from a supported registry/
1790+
/found no dependencies to audit that were installed from a supported registry/
17911791
)
17921792
})
17931793

@@ -1815,7 +1815,7 @@ t.test('audit signatures', async t => {
18151815

18161816
await t.rejects(
18171817
npm.exec('audit', ['signatures']),
1818-
/found no dependencies to audit that where installed from a supported registry/
1818+
/found no dependencies to audit that were installed from a supported registry/
18191819
)
18201820
})
18211821

@@ -1844,7 +1844,7 @@ t.test('audit signatures', async t => {
18441844

18451845
await t.rejects(
18461846
npm.exec('audit', ['signatures']),
1847-
/found no dependencies to audit that where installed from a supported registry/
1847+
/found no dependencies to audit that were installed from a supported registry/
18481848
)
18491849
})
18501850

0 commit comments

Comments
 (0)