From 24b48768bf78e6f1fd89ae8ef47c079cd09d17f5 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sat, 28 Jan 2017 16:23:07 -0500 Subject: [PATCH] fix md test --- frontend/test/Metamaps.Util.spec.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/test/Metamaps.Util.spec.js b/frontend/test/Metamaps.Util.spec.js index e0366bd9..db0ab73a 100644 --- a/frontend/test/Metamaps.Util.spec.js +++ b/frontend/test/Metamaps.Util.spec.js @@ -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) ![Image](https://example.org/image.png)' - const html = '

Link Image

' + it('links', function() { + const md = '[Link](https://metamaps.cc)' + const html = '

Link

' expect(Util.mdToHTML(md).trim()).to.equal(html) }) + + it('images are not rendered', function() { + const md = '![Image](https://example.org/image.png)' + const html = '

![Image](https://example.org/image.png)

' + expect(Util.mdToHTML(md).trim()).to.equal(html) }) describe('logCanvasAttributes', function() { it.skip('TODO need a canvas')