aboutsummaryrefslogtreecommitdiff
path: root/test/unit/specs/components
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-06-13 13:19:54 +0300
committerHenry Jameson <me@hjkos.com>2022-06-13 13:19:54 +0300
commit3628fb4272c0b9f5a66f0de61e6c4f37f4908fe7 (patch)
tree32ccfe3d1eb3320d0b5fa1e90425d730c38aa625 /test/unit/specs/components
parent97e4a3d8e52bc2255f4be23967a2223f5e458a67 (diff)
fix tests
Diffstat (limited to 'test/unit/specs/components')
-rw-r--r--test/unit/specs/components/rich_content.spec.js23
1 files changed, 15 insertions, 8 deletions
diff --git a/test/unit/specs/components/rich_content.spec.js b/test/unit/specs/components/rich_content.spec.js
index 958fb997..cd8d4b86 100644
--- a/test/unit/specs/components/rich_content.spec.js
+++ b/test/unit/specs/components/rich_content.spec.js
@@ -4,7 +4,15 @@ import RichContent from 'src/components/rich_content/rich_content.jsx'
const attentions = []
const global = {
mocks: {
- '$store': null
+ '$store': {
+ state: {},
+ getters: {
+ mergedConfig: () => ({
+ mentionLinkShowTooltip: true
+ }),
+ findUserByUrl: () => null
+ }
+ }
},
stubs: {
FAIcon: true
@@ -131,8 +139,7 @@ describe('RichContent', () => {
].join(''),
[
makeMention('John'),
- makeMention('Josh'),
- makeMention('Jeremy')
+ makeMention('Josh'), makeMention('Jeremy')
].join('')
].join('\n')
@@ -359,9 +366,9 @@ describe('RichContent', () => {
'</span>',
'</a>',
'<!-- eslint-enable vue/no-v-html -->',
- '<!--v-if-->', // v-if placeholder, mentionlink's "new" (i.e. rich) display
+ '<!---->', // vue placeholder
'</span>',
- '<!--v-if-->', // v-if placeholder, mentionsline's extra mentions and stuff
+ '<!--v-if-->', // vue placeholder, mentionsline's extra mentions and stuff
'</span>'
),
p(
@@ -422,7 +429,7 @@ describe('RichContent', () => {
'</span>',
'</a>',
'<!-- eslint-enable vue/no-v-html -->',
- '<!--v-if-->', // v-if placeholder, mentionlink's "new" (i.e. rich) display
+ '<!---->', // vue placeholder, mentionlink's "new" (i.e. rich) display
'</span>',
'<span class="MentionLink mention-link">',
'<!-- eslint-disable vue/no-v-html -->',
@@ -435,9 +442,9 @@ describe('RichContent', () => {
'</span>',
'</a>',
'<!-- eslint-enable vue/no-v-html -->',
- '<!--v-if-->', // v-if placeholder, mentionlink's "new" (i.e. rich) display
+ '<!---->', // vue placeholder, mentionlink's "new" (i.e. rich) display
'</span>',
- '<!--v-if-->', // v-if placeholder, mentionsline's extra mentions and stuff
+ '<!--v-if-->', // vue placeholder, mentionsline's extra mentions and stuff
'</span>',
' ',
'</span>',