From bc9cf30907bacbd30db6415c9ee31d80df5e3736 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 23 Mar 2020 17:39:55 +0100 Subject: [PATCH] Fix code style --- test/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/index.js b/test/index.js index b497923..7dfe62f 100644 --- a/test/index.js +++ b/test/index.js @@ -86,20 +86,20 @@ test('fixtures', function (t) { try { config = JSON.parse(read(join(base, fixture, 'config.json'))) - } catch (error) {} + } catch (_) {} proc = remark().use(frontmatter, config) actual = proc.parse(input) try { output = read(outputPath, 'utf8') - } catch (error) { + } catch (_) { output = String(input) } try { expected = JSON.parse(read(treePath)) - } catch (error) { + } catch (_) { // New fixture. write(treePath, JSON.stringify(actual, 0, 2) + '\n') expected = actual