fix tests and add CI (#5)

Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: http://akkoma.dev/AkkomaGang/pleroma-fe/pulls/5
This commit is contained in:
floatingghost 2022-06-15 17:22:02 +00:00
parent 1ad17fc2bf
commit a0305e90f0
3 changed files with 50 additions and 22 deletions

View file

@ -44,12 +44,12 @@ describe('RichContent', () => {
const html = [
p('Testing &#39;em all'),
'Testing &#39;em all',
'<a href="http://example.com?a=1&amp;b=2">http://example.com?a=1&b=2</a>'
'<a href="http://example.com?a=1">http://example.com?a=1</a>'
].join('')
const expected = [
p('Testing \'em all'),
'Testing \'em all',
'<a href="http://example.com?a=1&b=2">http://example.com?a=1&b=2</a>'
'<a href="http://example.com?a=1" target="_blank">http://example.com?a=1</a>'
].join('')
const wrapper = shallowMount(RichContent, {
global,