Skip to content

Commit 0ad958f

Browse files
XhmikosRisaacs
authored andcommitted
(docs,test): assorted typo fixes
PR-URL: #2381 Credit: @XhmikosR Close: #2381 Reviewed-by: @isaacs
1 parent cba3341 commit 0ad958f

10 files changed

Lines changed: 30 additions & 30 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@
977977
* fix package.json dependencies order
978978
* [`49b2bf5a7`](https://github.com/npm/cli/commit/49b2bf5a798b49d52166744088a80b8a39ccaeb6)
979979
980-
* fix unkown envs to be passed through
980+
* fix unknown envs to be passed through
981981
* fix setting correct globalPrefix on load
982982
* [`f9aac351d`](https://github.com/npm/cli/commit/f9aac351dd36a19d14e1f951a2e8e20b41545822)
983983

docs/content/using-npm/scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To create "pre" or "post" scripts for any scripts defined in the `"scripts"` sec
2424

2525
### Life Cycle Scripts
2626

27-
There are some special life cycle scripts that happen only in certain situations. These scripts happen in addtion to the "pre" and "post" script.
27+
There are some special life cycle scripts that happen only in certain situations. These scripts happen in addition to the "pre" and "post" script.
2828
* `prepare`, `prepublish`, `prepublishOnly`, `prepack`, `postpack`
2929

3030
**prepare** (since `[email protected]`)

tap-snapshots/test-lib-config.js-TAP.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ long = false
129129
; Run \`npm config ls -l\` to show all defaults.
130130
`
131131

132-
exports[`test/lib/config.js TAP config list overrides > should list overriden configs 1`] = `
132+
exports[`test/lib/config.js TAP config list overrides > should list overridden configs 1`] = `
133133
; "cli" config from command line options
134134
135135
editor = "vi"

tap-snapshots/test-lib-ls.js-TAP.test.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ exports[`test/lib/ls.js TAP ls --parseable --production > should output tree con
187187
{CWD}/ls-ls-parseable--production/node_modules/prod-dep/node_modules/bar
188188
`
189189

190-
exports[`test/lib/ls.js TAP ls --parseable cycle deps > should print tree output ommiting deduped ref 1`] = `
190+
exports[`test/lib/ls.js TAP ls --parseable cycle deps > should print tree output omitting deduped ref 1`] = `
191191
{CWD}/ls-ls-parseable-cycle-deps
192192
{CWD}/ls-ls-parseable-cycle-deps/node_modules/a
193193
{CWD}/ls-ls-parseable-cycle-deps/node_modules/b
@@ -287,19 +287,19 @@ exports[`test/lib/ls.js TAP ls --parseable using aliases > should output tree co
287287
{CWD}/ls-ls-parseable-using-aliases/node_modules/a
288288
`
289289

290-
exports[`test/lib/ls.js TAP ls --parseable with filter arg > should output parseable contaning only occurences of filtered by package 1`] = `
290+
exports[`test/lib/ls.js TAP ls --parseable with filter arg > should output parseable contaning only occurrences of filtered by package 1`] = `
291291
{CWD}/ls-ls-parseable-with-filter-arg/node_modules/lorem
292292
`
293293

294-
exports[`test/lib/ls.js TAP ls --parseable with filter arg nested dep > should output parseable contaning only occurences of filtered package 1`] = `
294+
exports[`test/lib/ls.js TAP ls --parseable with filter arg nested dep > should output parseable contaning only occurrences of filtered package 1`] = `
295295
{CWD}/ls-ls-parseable-with-filter-arg-nested-dep/node_modules/bar
296296
`
297297

298298
exports[`test/lib/ls.js TAP ls --parseable with missing filter arg > should output parseable output containing no dependencies info 1`] = `
299299
300300
`
301301

302-
exports[`test/lib/ls.js TAP ls --parseable with multiple filter args > should output parseable contaning only occurences of multiple filtered packages and their ancestors 1`] = `
302+
exports[`test/lib/ls.js TAP ls --parseable with multiple filter args > should output parseable contaning only occurrences of multiple filtered packages and their ancestors 1`] = `
303303
{CWD}/ls-ls-parseable-with-multiple-filter-args/node_modules/lorem
304304
{CWD}/ls-ls-parseable-with-multiple-filter-args/node_modules/bar
305305
`
@@ -319,8 +319,8 @@ [email protected] {CWD}/ls-ls-broken-resolved-field
319319
320320
`
321321

322-
exports[`test/lib/ls.js TAP ls coloured output > should output tree containing color info 1`] = `
323-
[[email protected] {CWD}/ls-ls-coloured-output[0m
322+
exports[`test/lib/ls.js TAP ls colored output > should output tree containing color info 1`] = `
323+
[[email protected] {CWD}/ls-ls-colored-output[0m
324324
+-- [email protected] invalid
325325
| \`-- [email protected]
326326
+-- UNMET DEPENDENCY ipsum@^1.0.0
@@ -550,19 +550,19 @@ [email protected] {CWD}/ls-ls-with-args-and-different-order-of-items
550550
551551
`
552552

553-
exports[`test/lib/ls.js TAP ls with dot filter arg > should output tree contaning only occurences of filtered by package and coloured output 1`] = `
553+
exports[`test/lib/ls.js TAP ls with dot filter arg > should output tree contaning only occurrences of filtered by package and colored output 1`] = `
554554
[email protected] {CWD}/ls-ls-with-dot-filter-arg
555555
\`-- (empty)
556556
557557
`
558558

559-
exports[`test/lib/ls.js TAP ls with filter arg > should output tree contaning only occurences of filtered by package and coloured output 1`] = `
559+
exports[`test/lib/ls.js TAP ls with filter arg > should output tree contaning only occurrences of filtered by package and colored output 1`] = `
560560
[[email protected] {CWD}/ls-ls-with-filter-arg
561561
\`-- [[email protected]
562562

563563
`
564564

565-
exports[`test/lib/ls.js TAP ls with filter arg nested dep > should output tree contaning only occurences of filtered package and its ancestors 1`] = `
565+
exports[`test/lib/ls.js TAP ls with filter arg nested dep > should output tree contaning only occurrences of filtered package and its ancestors 1`] = `
566566
[email protected] {CWD}/ls-ls-with-filter-arg-nested-dep
567567
568568
@@ -575,7 +575,7 @@ [email protected] {CWD}/ls-ls-with-missing-filter-arg
575575
576576
`
577577

578-
exports[`test/lib/ls.js TAP ls with multiple filter args > should output tree contaning only occurences of multiple filtered packages and their ancestors 1`] = `
578+
exports[`test/lib/ls.js TAP ls with multiple filter args > should output tree contaning only occurrences of multiple filtered packages and their ancestors 1`] = `
579579
[email protected] {CWD}/ls-ls-with-multiple-filter-args
580580
581581

test/fixtures/eresolve-explanations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// some real-world examples of ERESOLVE error explaination objects,
1+
// some real-world examples of ERESOLVE error explanation objects,
22
// copied from arborist or generated there.
33
module.exports = {
44
cycleNested: {

test/lib/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ t.test('config list overrides', t => {
122122

123123
config(['list'], (err) => {
124124
t.ifError(err, 'npm config list')
125-
t.matchSnapshot(result, 'should list overriden configs')
125+
t.matchSnapshot(result, 'should list overridden configs')
126126
})
127127
})
128128

test/lib/dist-tag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,6 @@ test('completion', t => {
323323
},
324324
},
325325
}, (err) => {
326-
t.notOk(err, 'should ignore any unkown name')
326+
t.notOk(err, 'should ignore any unknown name')
327327
})
328328
})

test/lib/ls.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ t.test('ls', (t) => {
209209
})
210210
ls(['lorem'], (err) => {
211211
t.ifError(err, 'npm ls')
212-
t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurences of filtered by package and coloured output')
212+
t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurrences of filtered by package and colored output')
213213
_flatOptions.color = false
214214
t.end()
215215
})
@@ -231,7 +231,7 @@ t.test('ls', (t) => {
231231
})
232232
ls(['.'], (err) => {
233233
t.ifError(err, 'should not throw on missing dep above current level')
234-
t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurences of filtered by package and coloured output')
234+
t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurrences of filtered by package and colored output')
235235
_flatOptions.all = true
236236
_flatOptions.depth = Infinity
237237
t.end()
@@ -252,7 +252,7 @@ t.test('ls', (t) => {
252252
})
253253
ls(['bar'], (err) => {
254254
t.ifError(err, 'npm ls')
255-
t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurences of filtered package and its ancestors')
255+
t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurrences of filtered package and its ancestors')
256256
t.end()
257257
})
258258
})
@@ -280,7 +280,7 @@ t.test('ls', (t) => {
280280
})
281281
ls(['bar@*', '[email protected]'], (err) => {
282282
t.ifError(err, 'npm ls')
283-
t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurences of multiple filtered packages and their ancestors')
283+
t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurrences of multiple filtered packages and their ancestors')
284284
t.end()
285285
})
286286
})
@@ -443,7 +443,7 @@ t.test('ls', (t) => {
443443
})
444444
})
445445

446-
t.test('coloured output', (t) => {
446+
t.test('colored output', (t) => {
447447
_flatOptions.color = true
448448
prefix = t.testdir({
449449
'package.json': JSON.stringify({
@@ -1588,7 +1588,7 @@ t.test('ls --parseable', (t) => {
15881588
})
15891589
ls(['lorem'], (err) => {
15901590
t.ifError(err, 'npm ls')
1591-
t.matchSnapshot(redactCwd(result), 'should output parseable contaning only occurences of filtered by package')
1591+
t.matchSnapshot(redactCwd(result), 'should output parseable contaning only occurrences of filtered by package')
15921592
t.end()
15931593
})
15941594
})
@@ -1607,7 +1607,7 @@ t.test('ls --parseable', (t) => {
16071607
})
16081608
ls(['bar'], (err) => {
16091609
t.ifError(err, 'npm ls')
1610-
t.matchSnapshot(redactCwd(result), 'should output parseable contaning only occurences of filtered package')
1610+
t.matchSnapshot(redactCwd(result), 'should output parseable contaning only occurrences of filtered package')
16111611
t.end()
16121612
})
16131613
})
@@ -1635,7 +1635,7 @@ t.test('ls --parseable', (t) => {
16351635
})
16361636
ls(['bar@*', '[email protected]'], (err) => {
16371637
t.ifError(err, 'npm ls')
1638-
t.matchSnapshot(redactCwd(result), 'should output parseable contaning only occurences of multiple filtered packages and their ancestors')
1638+
t.matchSnapshot(redactCwd(result), 'should output parseable contaning only occurrences of multiple filtered packages and their ancestors')
16391639
t.end()
16401640
})
16411641
})
@@ -2158,7 +2158,7 @@ t.test('ls --parseable', (t) => {
21582158
},
21592159
})
21602160
ls([], () => {
2161-
t.matchSnapshot(redactCwd(result), 'should print tree output ommiting deduped ref')
2161+
t.matchSnapshot(redactCwd(result), 'should print tree output omitting deduped ref')
21622162
t.end()
21632163
})
21642164
})
@@ -2482,7 +2482,7 @@ t.test('ls --json', (t) => {
24822482
},
24832483
},
24842484
},
2485-
'should output json contaning only occurences of filtered by package'
2485+
'should output json contaning only occurrences of filtered by package'
24862486
)
24872487
t.equal(
24882488
process.exitCode,
@@ -2523,7 +2523,7 @@ t.test('ls --json', (t) => {
25232523
},
25242524
},
25252525
},
2526-
'should output json contaning only occurences of filtered by package'
2526+
'should output json contaning only occurrences of filtered by package'
25272527
)
25282528
t.end()
25292529
})
@@ -2571,7 +2571,7 @@ t.test('ls --json', (t) => {
25712571
},
25722572
},
25732573
},
2574-
'should output json contaning only occurences of multiple filtered packages and their ancestors'
2574+
'should output json contaning only occurrences of multiple filtered packages and their ancestors'
25752575
)
25762576
t.end()
25772577
})

test/lib/owner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ t.test('owner ls fails to retrieve packument', t => {
119119
t.match(
120120
err,
121121
/ERR/,
122-
'should throw unkown error'
122+
'should throw unknown error'
123123
)
124124
})
125125
})

test/lib/utils/replace-info.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ t.equal(
4646
t.equal(
4747
replaceInfo('Something https://user:[email protected]/ foo bar'),
4848
'Something https://user:***@registry.npmjs.org/ foo bar',
49-
'should replace single item withing a phrase'
49+
'should replace single item within a phrase'
5050
)
5151

5252
t.deepEqual(

0 commit comments

Comments
 (0)