test bold and link regex

This commit is contained in:
Hans Pagel
2020-10-08 14:39:44 +02:00
parent f070ddc9fc
commit f9860c54a9
2 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
/// <reference types="cypress" />
import { pasteRegex } from '@tiptap/extension-link'
describe('link regex test', () => {
it('paste regex matches url', () => {
expect('https://www.example.com/with-spaces?var=true&foo=bar+3').to.match(pasteRegex)
})
})