Skip to content

Commit

Permalink
CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vhf committed Jul 22, 2018
1 parent ee472bc commit ab0ed51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"vfile": "^3.0.0"
},
"peerDependencies": {
"mermaid.cli": "^0.3.1"
"mermaid.cli": "^0.5.1"
},
"scripts": {
"lint": "$(npm bin)/eslint src",
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function render(source, destination, asString) {

if (asString) {
const string = fs.readFileSync(svgPath).toString();
fs.removeSync(svgPath);
// fs.removeSync(svgPath);
return string;
}

Expand Down
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ describe('remark-mermaid', () => {
addMetadata(vfile, destFile);

const result = remark().use(mermaid, { asString: true }).processSync(vfile).toString();
expect(result).toMatch(/<svg id="[\s\S]*<\/svg>/);
expect(vfile.messages[0].message).toBe('mermaid code block replaced with graph');
expect(result).toMatch(/<svg id="[\s\S]*<\/svg>/);
});

it('can handle mermaid images', () => {
Expand Down

0 comments on commit ab0ed51

Please sign in to comment.