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:
authorGar <gar+gh@danger.computer>2022-08-18 18:00:46 +0300
committerLuke Karrys <luke@lukekarrys.com>2022-08-22 21:14:50 +0300
commitbd2ae5d79eb8807bfca6075e98432c545a9ededa (patch)
tree283f8cfd5e989303279331a105adfdd0c024e1be /test
parentd54f03132a5e8247cdd8a3c165669477e95980fb (diff)
fix: linting
In preparation for @npmcli/eslint-config@3.1.0
Diffstat (limited to 'test')
-rw-r--r--test/lib/commands/shrinkwrap.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lib/commands/shrinkwrap.js b/test/lib/commands/shrinkwrap.js
index e3fc1f935..812a9e23e 100644
--- a/test/lib/commands/shrinkwrap.js
+++ b/test/lib/commands/shrinkwrap.js
@@ -13,7 +13,9 @@ t.formatSnapshot = obj =>
(k, v) => {
try {
return JSON.parse(v)
- } catch {}
+ } catch {
+ // leave invalid JSON as a string
+ }
return v
},
2