Skip to content

Commit

Permalink
fix(tests): fix link rel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbch committed Jul 7, 2023
1 parent f92916d commit c1d1854
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demos/src/Marks/Link/React/index.spec.js
Expand Up @@ -32,7 +32,7 @@ context('/src/Marks/Link/React/', () => {
cy.get('.tiptap').then(([{ editor }]) => {
editor.commands.setContent('<p><a href="#" rel="follow">Example Text</a></p>')
expect(editor.getHTML()).to.eq(
'<p><a target="_blank" rel="noopener noreferrer nofollow" href="#">Example Text</a></p>',
'<p><a target="_blank" rel="follow" href="#">Example Text</a></p>',
)
})
})
Expand Down
2 changes: 1 addition & 1 deletion demos/src/Marks/Link/Vue/index.spec.js
Expand Up @@ -27,7 +27,7 @@ context('/src/Marks/Link/Vue/', () => {
it('should parse a tags with rel attribute correctly', () => {
cy.get('.tiptap').then(([{ editor }]) => {
editor.commands.setContent('<p><a href="#" rel="follow">Example Text</a></p>')
expect(editor.getHTML()).to.eq('<p><a target="_blank" rel="noopener noreferrer nofollow" href="#">Example Text</a></p>')
expect(editor.getHTML()).to.eq('<p><a target="_blank" rel="follow" href="#">Example Text</a></p>')
})
})

Expand Down

0 comments on commit c1d1854

Please sign in to comment.