mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +01:00 
			
		
		
		
	Updated failing tests.
This commit is contained in:
		
							parent
							
								
									1e963f0125
								
							
						
					
					
						commit
						41e59b2a13
					
				@ -42,7 +42,7 @@ describe( 'MermaidToolbar', () => {
 | 
				
			|||||||
			expect( toolbar.items.get( 0 ).label ).to.equal( 'Source view' );
 | 
								expect( toolbar.items.get( 0 ).label ).to.equal( 'Source view' );
 | 
				
			||||||
			expect( toolbar.items.get( 1 ).label ).to.equal( 'Split view' );
 | 
								expect( toolbar.items.get( 1 ).label ).to.equal( 'Split view' );
 | 
				
			||||||
			expect( toolbar.items.get( 2 ).label ).to.equal( 'Preview' );
 | 
								expect( toolbar.items.get( 2 ).label ).to.equal( 'Preview' );
 | 
				
			||||||
			expect( toolbar.items.get( 4 ).label ).to.equal( 'Mermaid info' );
 | 
								expect( toolbar.items.get( 4 ).label ).to.equal( 'Read more about Mermaid diagram syntax' );
 | 
				
			||||||
		} );
 | 
							} );
 | 
				
			||||||
	} );
 | 
						} );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -36,7 +36,7 @@ describe( 'MermaidUI', () => {
 | 
				
			|||||||
		it( 'has the base properties', () => {
 | 
							it( 'has the base properties', () => {
 | 
				
			||||||
			const button = editor.ui.componentFactory.create( 'mermaid' );
 | 
								const button = editor.ui.componentFactory.create( 'mermaid' );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			expect( button ).to.have.property( 'label', 'Insert Mermaid' );
 | 
								expect( button ).to.have.property( 'label', 'Insert Mermaid diagram' );
 | 
				
			||||||
			expect( button ).to.have.property( 'icon' );
 | 
								expect( button ).to.have.property( 'icon' );
 | 
				
			||||||
			expect( button ).to.have.property( 'tooltip', true );
 | 
								expect( button ).to.have.property( 'tooltip', true );
 | 
				
			||||||
		} );
 | 
							} );
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user