Skip to content

Commit

Permalink
fix update-specs
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed May 4, 2019
1 parent d9f22d2 commit 37dddb4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/update-specs.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fetch = require('node-fetch');
const cheerio = require('cheerio');
const marked = require('../../../');
const htmlDiffer = require('../../helpers/html-differ.js');
const marked = require('../');
const htmlDiffer = require('./helpers/html-differ.js');
const fs = require('fs');
const path = require('path');

Expand All @@ -27,6 +27,7 @@ function updateCommonmark(dir) {
});
removeFiles(dir);
fs.writeFileSync(path.resolve(dir, `./commonmark.${version}.json`), JSON.stringify(specs, null, 2) + '\n');
console.log(`Saved CommonMark v${version} specs`);
})
)
.catch((err) => {
Expand Down Expand Up @@ -70,6 +71,7 @@ function updateGfm(dir) {
});
removeFiles(dir);
fs.writeFileSync(path.resolve(dir, `./gfm.${version}.json`), JSON.stringify(specs, null, 2) + '\n');
console.log(`Saved GFM v${version} specs.`);
})
.catch((err) => {
console.error(err);
Expand Down

0 comments on commit 37dddb4

Please sign in to comment.