Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 9, 2019
1 parent 7710e36 commit 732adc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion script/regenerate-fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fs.readdir(join(root), function(err, files) {

try {
config = JSON.parse(fs.readFileSync(join(base, 'config.json')))
} catch (error) {
} catch (_) {
config = {}
}

Expand Down
6 changes: 3 additions & 3 deletions test/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,19 +261,19 @@ test('fixtures', function(t) {

try {
config = JSON.parse(fs.readFileSync(path.join(fp, 'config.json')))
} catch (error) {}
} catch (_) {}

try {
result = fs.readFileSync(path.join(fp, 'result.html'), 'utf8')
} catch (error) {}
} catch (_) {}

node = rehype()
.data('settings', config)
.parse(file)

try {
tree = JSON.parse(fs.readFileSync(path.join(fp, 'index.json')))
} catch (error) {
} catch (_) {
fs.writeFileSync(
path.join(fp, 'index.json'),
JSON.stringify(node, 0, 2) + '\n'
Expand Down

0 comments on commit 732adc0

Please sign in to comment.