diff --git a/test/unit/specs/components/rich_content.spec.js b/test/unit/specs/components/rich_content.spec.js index cd8d4b86..8a18a08b 100644 --- a/test/unit/specs/components/rich_content.spec.js +++ b/test/unit/specs/components/rich_content.spec.js @@ -356,7 +356,6 @@ describe('RichContent', () => { p( '', '', - '', '', '', 'https://', @@ -365,10 +364,7 @@ describe('RichContent', () => { '', '', '', - '', - '', // vue placeholder '', - '', // vue placeholder, mentionsline's extra mentions and stuff '' ), p( @@ -387,7 +383,7 @@ describe('RichContent', () => { } }) - expect(wrapper.html().replace(/\n/g, '')).to.eql(compwrap(expected)) + expect(wrapper.html().replace(/\n/g, '').replace(//g, '')).to.eql(compwrap(expected)) }) it('rich contents of nested mentions are handled properly', () => { @@ -419,7 +415,6 @@ describe('RichContent', () => { '', '', '', - '', '', '', 'https://', @@ -428,11 +423,8 @@ describe('RichContent', () => { '', '', '', - '', - '', // vue placeholder, mentionlink's "new" (i.e. rich) display '', '', - '', '', '', 'https://', @@ -441,10 +433,7 @@ describe('RichContent', () => { '', '', '', - '', - '', // vue placeholder, mentionlink's "new" (i.e. rich) display '', - '', // vue placeholder, mentionsline's extra mentions and stuff '', ' ', '', @@ -462,7 +451,7 @@ describe('RichContent', () => { } }) - expect(wrapper.html().replace(/\n/g, '')).to.eql(compwrap(expected)) + expect(wrapper.html().replace(/\n/g, '').replace(//g, '')).to.eql(compwrap(expected)) }) it('rich contents of a link are handled properly', () => {