mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 04:16:17 +01:00 
			
		
		
		
	test(ckeditor5-mermaid): fix errors due to missing license key
This commit is contained in:
		@@ -14,6 +14,7 @@ describe( 'InsertMermaidCommand', () => {
 | 
				
			|||||||
		document.body.appendChild( domElement );
 | 
							document.body.appendChild( domElement );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		editor = await ClassicEditor.create( domElement, {
 | 
							editor = await ClassicEditor.create( domElement, {
 | 
				
			||||||
 | 
								licenseKey: "GPL",
 | 
				
			||||||
			plugins: [
 | 
								plugins: [
 | 
				
			||||||
				MermaidEditing,
 | 
									MermaidEditing,
 | 
				
			||||||
				Paragraph
 | 
									Paragraph
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,6 +15,7 @@ describe( 'MermaidPreviewCommand', () => {
 | 
				
			|||||||
		document.body.appendChild( domElement );
 | 
							document.body.appendChild( domElement );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		editor = await ClassicEditor.create( domElement, {
 | 
							editor = await ClassicEditor.create( domElement, {
 | 
				
			||||||
 | 
								licenseKey: "GPL",
 | 
				
			||||||
			plugins: [
 | 
								plugins: [
 | 
				
			||||||
				MermaidEditing,
 | 
									MermaidEditing,
 | 
				
			||||||
				Paragraph
 | 
									Paragraph
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,6 +15,7 @@ describe( 'MermaidSourceViewCommand', () => {
 | 
				
			|||||||
		document.body.appendChild( domElement );
 | 
							document.body.appendChild( domElement );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		editor = await ClassicEditor.create( domElement, {
 | 
							editor = await ClassicEditor.create( domElement, {
 | 
				
			||||||
 | 
								licenseKey: "GPL",
 | 
				
			||||||
			plugins: [
 | 
								plugins: [
 | 
				
			||||||
				MermaidEditing,
 | 
									MermaidEditing,
 | 
				
			||||||
				Paragraph
 | 
									Paragraph
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,6 +15,7 @@ describe( 'MermaidSplitViewCommand', () => {
 | 
				
			|||||||
		document.body.appendChild( domElement );
 | 
							document.body.appendChild( domElement );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		editor = await ClassicEditor.create( domElement, {
 | 
							editor = await ClassicEditor.create( domElement, {
 | 
				
			||||||
 | 
								licenseKey: "GPL",
 | 
				
			||||||
			plugins: [
 | 
								plugins: [
 | 
				
			||||||
				MermaidEditing,
 | 
									MermaidEditing,
 | 
				
			||||||
				Paragraph
 | 
									Paragraph
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -19,6 +19,7 @@ describe( 'Mermaid', () => {
 | 
				
			|||||||
			document.body.appendChild( domElement );
 | 
								document.body.appendChild( domElement );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			editor = await ClassicEditor.create( domElement, {
 | 
								editor = await ClassicEditor.create( domElement, {
 | 
				
			||||||
 | 
									licenseKey: "GPL",
 | 
				
			||||||
				plugins: [
 | 
									plugins: [
 | 
				
			||||||
					Paragraph,
 | 
										Paragraph,
 | 
				
			||||||
					Heading,
 | 
										Heading,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -19,6 +19,7 @@ describe( 'MermaidEditing', () => {
 | 
				
			|||||||
			document.body.appendChild( domElement );
 | 
								document.body.appendChild( domElement );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			editor = await ClassicEditor.create( domElement, {
 | 
								editor = await ClassicEditor.create( domElement, {
 | 
				
			||||||
 | 
									licenseKey: "GPL",
 | 
				
			||||||
				plugins: [
 | 
									plugins: [
 | 
				
			||||||
					Paragraph,
 | 
										Paragraph,
 | 
				
			||||||
					Heading,
 | 
										Heading,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,6 +14,7 @@ describe( 'MermaidToolbar', () => {
 | 
				
			|||||||
		document.body.appendChild( domElement );
 | 
							document.body.appendChild( domElement );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		return ClassicTestEditor.create( domElement, {
 | 
							return ClassicTestEditor.create( domElement, {
 | 
				
			||||||
 | 
								licenseKey: "GPL",
 | 
				
			||||||
			plugins: [ Essentials, Paragraph, Mermaid ],
 | 
								plugins: [ Essentials, Paragraph, Mermaid ],
 | 
				
			||||||
			mermaid: {
 | 
								mermaid: {
 | 
				
			||||||
				toolbar: [ 'fake_button' ]
 | 
									toolbar: [ 'fake_button' ]
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,6 +20,7 @@ describe( 'MermaidUI', () => {
 | 
				
			|||||||
			document.body.appendChild( domElement );
 | 
								document.body.appendChild( domElement );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			editor = await ClassicEditor.create( domElement, {
 | 
								editor = await ClassicEditor.create( domElement, {
 | 
				
			||||||
 | 
									licenseKey: "GPL",
 | 
				
			||||||
				plugins: [
 | 
									plugins: [
 | 
				
			||||||
					Mermaid
 | 
										Mermaid
 | 
				
			||||||
				]
 | 
									]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user