Skip to content

Commit

Permalink
Commit snapshot?
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Oct 26, 2018
1 parent 22c02f3 commit d7370ca
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions v1/lib/server/__tests__/__snapshots__/docs.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,42 @@ const testStr = \`![image3](assets/image3.gif)\`;
\`\`\`"
`;

exports[`mdToHtmlify transforms reference links 1`] = `
"
### Existing Docs
- [doc1][doc1]
- [doc2][doc2]
### Non-existing Docs
- [hahaha][hahaha]
## Repeating Docs
- [doc1][doc1]
- [doc2][doc2]
## Do not replace this
\`\`\`md
![image1][image1]
\`\`\`
\`\`\`js
const doc1 = foo();
console.log(\\"[image2][image2]\\");
const testStr = \`![image3][image3]\`;
\`\`\`
[doc1]: /docs/en/next/doc1
[doc2]: /docs/en/next/doc2
[hahaha]: hahaha.md
[image1]: assets/image1.png
[image2]: assets/image2.jpg
[image3]: assets/image3.gif
"
`;

exports[`replaceAssetsLink does not transform document without valid assets link 1`] = `
"
### Existing Docs
Expand Down

0 comments on commit d7370ca

Please sign in to comment.