Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Mar 23, 2020
1 parent 9d0fcb9 commit bc9cf30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc9cf30

Please sign in to comment.