mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-03 20:34:20 +01:00 
			
		
		
		
	#989 Font configuration
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
import { imgSnapshotTest } from '../../helpers/util';
 | 
			
		||||
 | 
			
		||||
describe('Flowcart', () => {
 | 
			
		||||
  it('should render a simple flowchart', () => {
 | 
			
		||||
  it('should render a simple flowchart no htmlLabels', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `graph TD
 | 
			
		||||
      A[Christmas] -->|Get money| B(Go shopping)
 | 
			
		||||
@@ -11,7 +11,19 @@ describe('Flowcart', () => {
 | 
			
		||||
      C -->|Two| E[iPhone]
 | 
			
		||||
      C -->|Three| F[fa:fa-car Car]
 | 
			
		||||
      `,
 | 
			
		||||
      {}
 | 
			
		||||
      { flowchart: { htmlLabels: false } }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
  it('should render a simple flowchart with htmlLabels', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `graph TD
 | 
			
		||||
      A[Christmas] -->|Get money| B(Go shopping)
 | 
			
		||||
      B --> C{Let me think}
 | 
			
		||||
      C -->|One| D[Laptop]
 | 
			
		||||
      C -->|Two| E[iPhone]
 | 
			
		||||
      C -->|Three| F[fa:fa-car Car]
 | 
			
		||||
      `,
 | 
			
		||||
      { flowchart: { htmlLabels: true } }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
  it('should render a simple flowchart with line breaks', () => {
 | 
			
		||||
 
 | 
			
		||||
@@ -19,7 +19,7 @@ describe('Sequencediagram', () => {
 | 
			
		||||
 | 
			
		||||
      section Critical tasks
 | 
			
		||||
      Completed task in the critical line :crit, done, 2014-01-06,24h
 | 
			
		||||
      Implement parser and jison          :crit, done, after des1, 2d
 | 
			
		||||
      Implement parser and jison :crit, done, after des1, 2d
 | 
			
		||||
      Create tests for parser             :crit, active, 3d
 | 
			
		||||
      Future task in critical line        :crit, 5d
 | 
			
		||||
      Create tests for renderer           :2d
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user