From 2dea567dcfcdfcd016c0da55a120c6e854760fb0 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Wed, 28 Jun 2017 10:30:02 -0400 Subject: Added MarkdownImage component (#6774) * Added MarkdownImage component * Fixed unit tests --- webapp/tests/utils/formatting_imgs.test.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'webapp/tests/utils') diff --git a/webapp/tests/utils/formatting_imgs.test.jsx b/webapp/tests/utils/formatting_imgs.test.jsx index 645a648d1..3e19a1e06 100644 --- a/webapp/tests/utils/formatting_imgs.test.jsx +++ b/webapp/tests/utils/formatting_imgs.test.jsx @@ -9,7 +9,7 @@ describe('Markdown.Imgs', function() { it('Inline mage', function(done) { assert.equal( Markdown.format('![Mattermost](/images/icon.png)').trim(), - '

Mattermost

' + '

Mattermost

' ); done(); @@ -18,7 +18,7 @@ describe('Markdown.Imgs', function() { it('Image with hover text', function(done) { assert.equal( Markdown.format('![Mattermost](/images/icon.png "Mattermost Icon")').trim(), - '

Mattermost

' + '

Mattermost

' ); done(); @@ -27,7 +27,7 @@ describe('Markdown.Imgs', function() { it('Image with link', function(done) { assert.equal( Markdown.format('[![Mattermost](../../images/icon-76x76.png)](https://github.com/mattermost/platform)').trim(), - '

Mattermost

' + '

Mattermost

' ); done(); @@ -36,7 +36,7 @@ describe('Markdown.Imgs', function() { it('Image with width and height', function(done) { assert.equal( Markdown.format('![Mattermost](../../images/icon-76x76.png =50x76 "Mattermost Icon")').trim(), - '

Mattermost

' + '

Mattermost

' ); done(); @@ -45,7 +45,7 @@ describe('Markdown.Imgs', function() { it('Image with width', function(done) { assert.equal( Markdown.format('![Mattermost](../../images/icon-76x76.png =50 "Mattermost Icon")').trim(), - '

Mattermost

' + '

Mattermost

' ); done(); -- cgit v1.2.3-1-g7c22