///
text
`, }) expect(editor.isActive('textStyle', { fontFamily: 'Inter' })).to.eq(true) }) it('should check the current mark for false values', () => { const editor = new Editor({ extensions: [ Document, Paragraph, Text, TextStyle, FontFamily, Color, ], content: `text
`, }) expect(editor.isActive('textStyle', { fontFamily: 'Comic Sans' })).to.eq(false) }) it('should check the current mark for any values', () => { const editor = new Editor({ extensions: [ Document, Paragraph, Text, TextStyle, FontFamily, ], content: `text
`, }) expect(editor.isActive('textStyle', { fontFamily: /.*/ })).to.eq(true) }) it('should check the current mark for correct values (multiple)', () => { const editor = new Editor({ extensions: [ Document, Paragraph, Text, TextStyle, FontFamily, Color, ], content: `text
`, }) expect(editor.isActive('textStyle', { fontFamily: 'Inter', color: 'red' })).to.eq(true) }) it('should check the current mark for false values (multiple)', () => { const editor = new Editor({ extensions: [ Document, Paragraph, Text, TextStyle, FontFamily, Color, ], content: `text
`, }) expect(editor.isActive('textStyle', { fontFamily: 'Inter', color: 'green' })).to.eq(false) }) })