tiptap/tests/cypress/integration/extensions/link.spec.ts
2020-10-08 14:39:44 +02:00

12 lines
264 B
TypeScript

/// <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)
})
})