mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-16 23:40:41 +08:00
22 lines
594 B
TypeScript
22 lines
594 B
TypeScript
/// <reference types="cypress" />
|
|
|
|
import { starInputRegex, starPasteRegex, underscoreInputRegex, underscorePasteRegex } from '@tiptap/extension-bold'
|
|
|
|
describe('bold regex test', () => {
|
|
it('star input regex matches', () => {
|
|
expect('**Test**').to.match(starInputRegex)
|
|
})
|
|
|
|
it('star paste regex matches', () => {
|
|
expect('**Test**').to.match(starPasteRegex)
|
|
})
|
|
|
|
it('underscore input regex matches', () => {
|
|
expect('__Test__').to.match(underscoreInputRegex)
|
|
})
|
|
|
|
it('underscore paste regex matches', () => {
|
|
expect('__Test__').to.match(underscorePasteRegex)
|
|
})
|
|
})
|