diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:04:13 -0700 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:11:58 -0700 |
commit | d8bd57901e33a7057e26e782e295099ffcc0da89 (patch) | |
tree | e12dfc8cad42b1576756d19d7fbfd82646a009bf /webapp/tests/utils/formatting_channel_links.test.jsx | |
parent | 7bc8e9a08dfde56387f946fdf5086252aa4d0491 (diff) | |
download | chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.gz chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.bz2 chat-d8bd57901e33a7057e26e782e295099ffcc0da89.zip |
Removing webapp
Diffstat (limited to 'webapp/tests/utils/formatting_channel_links.test.jsx')
-rw-r--r-- | webapp/tests/utils/formatting_channel_links.test.jsx | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/webapp/tests/utils/formatting_channel_links.test.jsx b/webapp/tests/utils/formatting_channel_links.test.jsx deleted file mode 100644 index 39dddf008..000000000 --- a/webapp/tests/utils/formatting_channel_links.test.jsx +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import assert from 'assert'; - -import * as TextFormatting from 'utils/text_formatting.jsx'; - -describe('TextFormatting.ChannelLinks', () => { - it('Not channel links', (done) => { - assert.equal( - TextFormatting.formatText('~123').trim(), - '<p>~123</p>' - ); - - assert.equal( - TextFormatting.formatText('~town-square').trim(), - '<p>~town-square</p>' - ); - - done(); - }); - - it('Channel links', (done) => { - assert.equal( - TextFormatting.formatText('~town-square', { - channelNamesMap: {'town-square': {display_name: 'Town Square'}}, - team: {name: 'myteam'} - }).trim(), - '<p><a class="mention-link" href="/myteam/channels/town-square" data-channel-mention="town-square">~Town Square</a></p>' - ); - assert.equal( - TextFormatting.formatText('~town-square.', { - channelNamesMap: {'town-square': {display_name: 'Town Square'}}, - team: {name: 'myteam'} - }).trim(), - '<p><a class="mention-link" href="/myteam/channels/town-square" data-channel-mention="town-square">~Town Square</a>.</p>' - ); - - assert.equal( - TextFormatting.formatText('~town-square', { - channelNamesMap: {'town-square': {display_name: '<b>Reception</b>'}}, - team: {name: 'myteam'} - }).trim(), - '<p><a class="mention-link" href="/myteam/channels/town-square" data-channel-mention="town-square">~<b>Reception</b></a></p>' - ); - - done(); - }); -}); |