aboutsummaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-08-15 18:11:38 +0300
committerHenry Jameson <me@hjkos.com>2021-08-15 18:11:38 +0300
commit8cc1ad67dff93b5faa1ed1bab663d16748eec68d (patch)
tree18ede5287cefe20d4af15b974dd90cfdaaeef578 /test/unit
parentf16658adfc897a3b07ed7f79d872acd2c3837cc8 (diff)
fix links sticking to mentionsline
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/specs/components/rich_content.spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/specs/components/rich_content.spec.js b/test/unit/specs/components/rich_content.spec.js
index b29edeab..c84df34b 100644
--- a/test/unit/specs/components/rich_content.spec.js
+++ b/test/unit/specs/components/rich_content.spec.js
@@ -59,7 +59,7 @@ describe('RichContent', () => {
it('replaces mention with mentionsline', () => {
const html = p(
makeMention('John'),
- ' how are you doing today?'
+ ' how are you doing today?' // also testing single-trimming function
)
const wrapper = shallowMount(RichContent, {
localVue,
@@ -74,7 +74,7 @@ describe('RichContent', () => {
expect(wrapper.html()).to.eql(compwrap(p(
mentionsLine(1),
- ' how are you doing today?'
+ ' how are you doing today?' // space removed to compensate for <ML> padding
)))
})