diff options
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 |