diff options
author | Gar <gar+gh@danger.computer> | 2022-08-18 18:00:46 +0300 |
---|---|---|
committer | Luke Karrys <luke@lukekarrys.com> | 2022-08-22 21:14:50 +0300 |
commit | bd2ae5d79eb8807bfca6075e98432c545a9ededa (patch) | |
tree | 283f8cfd5e989303279331a105adfdd0c024e1be /test | |
parent | d54f03132a5e8247cdd8a3c165669477e95980fb (diff) |
fix: linting
In preparation for @npmcli/eslint-config@3.1.0
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/commands/shrinkwrap.js | 4 |
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 |