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:
authorEdu93Jer <mailing_93@hotmail.com>2020-12-16 02:49:38 +0300
committerisaacs <i@izs.me>2020-12-18 22:35:16 +0300
commita92d310b7e9e4c48b08f52785c2e3a6d52a82ad7 (patch)
tree60a615230082a8cdac3d357ae7c59cbd94b0211d /test
parentbe4a0900b14b2c6315bf62bed8f5affb648215ae (diff)
Add max-len to lint rules
PR-URL: https://github.com/npm/cli/pull/2361 Credit: @Edu93Jer Close: #2361 Reviewed-by: @isaacs EDIT(@isaacs): amended to match some of the fixes to our current style conventions
Diffstat (limited to 'test')
-rw-r--r--test/lib/help-search.js3
-rw-r--r--test/lib/utils/reify-output.js5
2 files changed, 6 insertions, 2 deletions
diff --git a/test/lib/help-search.js b/test/lib/help-search.js
index 5ecf5db06..f74e2f1ef 100644
--- a/test/lib/help-search.js
+++ b/test/lib/help-search.js
@@ -40,7 +40,8 @@ const globDir = {
'npm-more-useless.md': 'exec exec',
'npm-extra-useless.md': 'exec\nexec\nexec',
}
-const glob = (p, cb) => cb(null, Object.keys(globDir).map((file) => join(globRoot, file)))
+const glob = (p, cb) =>
+ cb(null, Object.keys(globDir).map((file) => join(globRoot, file)))
const helpSearch = requireInject('../../lib/help-search.js', {
'../../lib/npm.js': npm,
diff --git a/test/lib/utils/reify-output.js b/test/lib/utils/reify-output.js
index f7fd96ee8..f88f072e1 100644
--- a/test/lib/utils/reify-output.js
+++ b/test/lib/utils/reify-output.js
@@ -245,7 +245,10 @@ t.test('packages changed message', t => {
settings.json = json
npmock.command = command
const mock = {
- actualTree: { inventory: { size: audited, has: () => true }, children: [] },
+ actualTree: {
+ inventory: { size: audited, has: () => true },
+ children: [],
+ },
auditReport: audited ? {
toJSON: () => mock.auditReport,
vulnerabilities: {},