Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-12-18 10:28:14 +0300
committerisaacs <i@izs.me>2020-12-18 23:04:47 +0300
commit0ad958fe1cb811699caca235f361c8328baac8c4 (patch)
tree5e1626fa77dd08607e400baec3bd329c82e725e8 /test
parentcba3341dae4c92541049dc976e82e2ba19566e95 (diff)
(docs,test): assorted typo fixes
PR-URL: https://github.com/npm/cli/pull/2381 Credit: @XhmikosR Close: #2381 Reviewed-by: @isaacs
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/eresolve-explanations.js2
-rw-r--r--test/lib/config.js2
-rw-r--r--test/lib/dist-tag.js2
-rw-r--r--test/lib/ls.js24
-rw-r--r--test/lib/owner.js2
-rw-r--r--test/lib/utils/replace-info.js2
6 files changed, 17 insertions, 17 deletions
diff --git a/test/fixtures/eresolve-explanations.js b/test/fixtures/eresolve-explanations.js
index b59671d20..c5c338e61 100644
--- a/test/fixtures/eresolve-explanations.js
+++ b/test/fixtures/eresolve-explanations.js
@@ -1,4 +1,4 @@
-// some real-world examples of ERESOLVE error explaination objects,
+// some real-world examples of ERESOLVE error explanation objects,
// copied from arborist or generated there.
module.exports = {
cycleNested: {
diff --git a/test/lib/config.js b/test/lib/config.js
index 1ccd823ac..5d2f54249 100644
--- a/test/lib/config.js
+++ b/test/lib/config.js
@@ -122,7 +122,7 @@ t.test('config list overrides', t => {
config(['list'], (err) => {
t.ifError(err, 'npm config list')
- t.matchSnapshot(result, 'should list overriden configs')
+ t.matchSnapshot(result, 'should list overridden configs')
})
})
diff --git a/test/lib/dist-tag.js b/test/lib/dist-tag.js
index e9dde4806..8b1106fa3 100644
--- a/test/lib/dist-tag.js
+++ b/test/lib/dist-tag.js
@@ -323,6 +323,6 @@ test('completion', t => {
},
},
}, (err) => {
- t.notOk(err, 'should ignore any unkown name')
+ t.notOk(err, 'should ignore any unknown name')
})
})
diff --git a/test/lib/ls.js b/test/lib/ls.js
index 256ebf353..7bbfc5f77 100644
--- a/test/lib/ls.js
+++ b/test/lib/ls.js
@@ -209,7 +209,7 @@ t.test('ls', (t) => {
})
ls(['lorem'], (err) => {
t.ifError(err, 'npm ls')
- t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurences of filtered by package and coloured output')
+ t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurrences of filtered by package and colored output')
_flatOptions.color = false
t.end()
})
@@ -231,7 +231,7 @@ t.test('ls', (t) => {
})
ls(['.'], (err) => {
t.ifError(err, 'should not throw on missing dep above current level')
- t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurences of filtered by package and coloured output')
+ t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurrences of filtered by package and colored output')
_flatOptions.all = true
_flatOptions.depth = Infinity
t.end()
@@ -252,7 +252,7 @@ t.test('ls', (t) => {
})
ls(['bar'], (err) => {
t.ifError(err, 'npm ls')
- t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurences of filtered package and its ancestors')
+ t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurrences of filtered package and its ancestors')
t.end()
})
})
@@ -280,7 +280,7 @@ t.test('ls', (t) => {
})
ls(['bar@*', 'lorem@1.0.0'], (err) => {
t.ifError(err, 'npm ls')
- t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurences of multiple filtered packages and their ancestors')
+ t.matchSnapshot(redactCwd(result), 'should output tree contaning only occurrences of multiple filtered packages and their ancestors')
t.end()
})
})
@@ -443,7 +443,7 @@ t.test('ls', (t) => {
})
})
- t.test('coloured output', (t) => {
+ t.test('colored output', (t) => {
_flatOptions.color = true
prefix = t.testdir({
'package.json': JSON.stringify({
@@ -1588,7 +1588,7 @@ t.test('ls --parseable', (t) => {
})
ls(['lorem'], (err) => {
t.ifError(err, 'npm ls')
- t.matchSnapshot(redactCwd(result), 'should output parseable contaning only occurences of filtered by package')
+ t.matchSnapshot(redactCwd(result), 'should output parseable contaning only occurrences of filtered by package')
t.end()
})
})
@@ -1607,7 +1607,7 @@ t.test('ls --parseable', (t) => {
})
ls(['bar'], (err) => {
t.ifError(err, 'npm ls')
- t.matchSnapshot(redactCwd(result), 'should output parseable contaning only occurences of filtered package')
+ t.matchSnapshot(redactCwd(result), 'should output parseable contaning only occurrences of filtered package')
t.end()
})
})
@@ -1635,7 +1635,7 @@ t.test('ls --parseable', (t) => {
})
ls(['bar@*', 'lorem@1.0.0'], (err) => {
t.ifError(err, 'npm ls')
- t.matchSnapshot(redactCwd(result), 'should output parseable contaning only occurences of multiple filtered packages and their ancestors')
+ t.matchSnapshot(redactCwd(result), 'should output parseable contaning only occurrences of multiple filtered packages and their ancestors')
t.end()
})
})
@@ -2158,7 +2158,7 @@ t.test('ls --parseable', (t) => {
},
})
ls([], () => {
- t.matchSnapshot(redactCwd(result), 'should print tree output ommiting deduped ref')
+ t.matchSnapshot(redactCwd(result), 'should print tree output omitting deduped ref')
t.end()
})
})
@@ -2482,7 +2482,7 @@ t.test('ls --json', (t) => {
},
},
},
- 'should output json contaning only occurences of filtered by package'
+ 'should output json contaning only occurrences of filtered by package'
)
t.equal(
process.exitCode,
@@ -2523,7 +2523,7 @@ t.test('ls --json', (t) => {
},
},
},
- 'should output json contaning only occurences of filtered by package'
+ 'should output json contaning only occurrences of filtered by package'
)
t.end()
})
@@ -2571,7 +2571,7 @@ t.test('ls --json', (t) => {
},
},
},
- 'should output json contaning only occurences of multiple filtered packages and their ancestors'
+ 'should output json contaning only occurrences of multiple filtered packages and their ancestors'
)
t.end()
})
diff --git a/test/lib/owner.js b/test/lib/owner.js
index e217533f0..c5f9d646c 100644
--- a/test/lib/owner.js
+++ b/test/lib/owner.js
@@ -119,7 +119,7 @@ t.test('owner ls fails to retrieve packument', t => {
t.match(
err,
/ERR/,
- 'should throw unkown error'
+ 'should throw unknown error'
)
})
})
diff --git a/test/lib/utils/replace-info.js b/test/lib/utils/replace-info.js
index f5e1246f1..ea9f06520 100644
--- a/test/lib/utils/replace-info.js
+++ b/test/lib/utils/replace-info.js
@@ -46,7 +46,7 @@ t.equal(
t.equal(
replaceInfo('Something https://user:pass@registry.npmjs.org/ foo bar'),
'Something https://user:***@registry.npmjs.org/ foo bar',
- 'should replace single item withing a phrase'
+ 'should replace single item within a phrase'
)
t.deepEqual(