-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(render): move inline render to render component
- Loading branch information
Showing
3 changed files
with
70 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
import QuakeDown from './quake-down'; | ||
import { marked } from 'marked'; | ||
|
||
describe('render', () => { | ||
it('render heading', () => { | ||
let renderer = new marked.Renderer(); | ||
let data = new QuakeDown('# heading+', renderer).gen(); | ||
expect(data.length).toEqual(1); | ||
|
||
}); | ||
|
||
it('render heading with links', () => { | ||
let renderer = new marked.Renderer(); | ||
let data = new QuakeDown('# [heading+](https://quake.inherd.org)', renderer).gen(); | ||
expect(data.length).toEqual(1); | ||
|
||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters