fix tests
This commit is contained in:
parent
97e4a3d8e5
commit
3628fb4272
|
@ -4,7 +4,15 @@ import RichContent from 'src/components/rich_content/rich_content.jsx'
|
||||||
const attentions = []
|
const attentions = []
|
||||||
const global = {
|
const global = {
|
||||||
mocks: {
|
mocks: {
|
||||||
'$store': null
|
'$store': {
|
||||||
|
state: {},
|
||||||
|
getters: {
|
||||||
|
mergedConfig: () => ({
|
||||||
|
mentionLinkShowTooltip: true
|
||||||
|
}),
|
||||||
|
findUserByUrl: () => null
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
stubs: {
|
stubs: {
|
||||||
FAIcon: true
|
FAIcon: true
|
||||||
|
@ -131,8 +139,7 @@ describe('RichContent', () => {
|
||||||
].join(''),
|
].join(''),
|
||||||
[
|
[
|
||||||
makeMention('John'),
|
makeMention('John'),
|
||||||
makeMention('Josh'),
|
makeMention('Josh'), makeMention('Jeremy')
|
||||||
makeMention('Jeremy')
|
|
||||||
].join('')
|
].join('')
|
||||||
].join('\n')
|
].join('\n')
|
||||||
|
|
||||||
|
@ -359,9 +366,9 @@ describe('RichContent', () => {
|
||||||
'</span>',
|
'</span>',
|
||||||
'</a>',
|
'</a>',
|
||||||
'<!-- eslint-enable vue/no-v-html -->',
|
'<!-- eslint-enable vue/no-v-html -->',
|
||||||
'<!--v-if-->', // v-if placeholder, mentionlink's "new" (i.e. rich) display
|
'<!---->', // vue placeholder
|
||||||
'</span>',
|
'</span>',
|
||||||
'<!--v-if-->', // v-if placeholder, mentionsline's extra mentions and stuff
|
'<!--v-if-->', // vue placeholder, mentionsline's extra mentions and stuff
|
||||||
'</span>'
|
'</span>'
|
||||||
),
|
),
|
||||||
p(
|
p(
|
||||||
|
@ -422,7 +429,7 @@ describe('RichContent', () => {
|
||||||
'</span>',
|
'</span>',
|
||||||
'</a>',
|
'</a>',
|
||||||
'<!-- eslint-enable vue/no-v-html -->',
|
'<!-- 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>',
|
||||||
'<span class="MentionLink mention-link">',
|
'<span class="MentionLink mention-link">',
|
||||||
'<!-- eslint-disable vue/no-v-html -->',
|
'<!-- eslint-disable vue/no-v-html -->',
|
||||||
|
@ -435,9 +442,9 @@ describe('RichContent', () => {
|
||||||
'</span>',
|
'</span>',
|
||||||
'</a>',
|
'</a>',
|
||||||
'<!-- eslint-enable vue/no-v-html -->',
|
'<!-- 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>',
|
||||||
'<!--v-if-->', // v-if placeholder, mentionsline's extra mentions and stuff
|
'<!--v-if-->', // vue placeholder, mentionsline's extra mentions and stuff
|
||||||
'</span>',
|
'</span>',
|
||||||
' ',
|
' ',
|
||||||
'</span>',
|
'</span>',
|
||||||
|
|
Loading…
Reference in New Issue