fix md test
This commit is contained in:
parent
9f29a24321
commit
24b48768bf
1 changed files with 8 additions and 3 deletions
|
@ -113,11 +113,16 @@ describe('Metamaps.Util.js', function() {
|
|||
expect(Util.mdToHTML(md).trim()).to.equal(html)
|
||||
})
|
||||
|
||||
it('links and images', function() {
|
||||
const md = '[Link](https://metamaps.cc) '
|
||||
const html = '<p><a href="https://metamaps.cc">Link</a> <img src="https://example.org/image.png" alt="Image" /></p>'
|
||||
it('links', function() {
|
||||
const md = '[Link](https://metamaps.cc)'
|
||||
const html = '<p><a href="https://metamaps.cc">Link</a></p>'
|
||||
expect(Util.mdToHTML(md).trim()).to.equal(html)
|
||||
})
|
||||
|
||||
it('images are not rendered', function() {
|
||||
const md = ''
|
||||
const html = '<p></p>'
|
||||
expect(Util.mdToHTML(md).trim()).to.equal(html)
|
||||
})
|
||||
describe('logCanvasAttributes', function() {
|
||||
it.skip('TODO need a canvas')
|
||||
|
|
Loading…
Add table
Reference in a new issue