mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 04:44:08 +01:00 
			
		
		
		
	Fixed rendering test cases
This commit is contained in:
		@@ -3,7 +3,7 @@ import { imgSnapshotTest } from '../../helpers/util.js';
 | 
			
		||||
describe('Git Graph diagram', () => {
 | 
			
		||||
  it('1: should render a simple gitgraph with commit on master branch', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `gitgraph
 | 
			
		||||
      `gitGraph
 | 
			
		||||
       commit
 | 
			
		||||
       commit
 | 
			
		||||
       commit
 | 
			
		||||
@@ -13,7 +13,7 @@ describe('Git Graph diagram', () => {
 | 
			
		||||
  });
 | 
			
		||||
  it('2: should render a simple gitgraph with commit on master branch with Id', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `gitgraph
 | 
			
		||||
      `gitGraph
 | 
			
		||||
       commit id: "One"
 | 
			
		||||
       commit id: "Two"
 | 
			
		||||
       commit id: "Three"
 | 
			
		||||
@@ -23,7 +23,7 @@ describe('Git Graph diagram', () => {
 | 
			
		||||
  });
 | 
			
		||||
  it('3: should render a simple gitgraph with different commitTypes on master branch ', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `gitgraph
 | 
			
		||||
      `gitGraph
 | 
			
		||||
       commit id: "Normal Commit"
 | 
			
		||||
       commit id: "Reverse Commit" commitType: REVERSE
 | 
			
		||||
       commit id: "Hightlight Commit" commitType: HIGHLIGHT
 | 
			
		||||
@@ -33,7 +33,7 @@ describe('Git Graph diagram', () => {
 | 
			
		||||
  });
 | 
			
		||||
  it('4: should render a simple gitgraph with tags commitTypes on master branch ', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `gitgraph
 | 
			
		||||
      `gitGraph
 | 
			
		||||
       commit id: "Normal Commit with tag" teg: "v1.0.0"
 | 
			
		||||
       commit id: "Reverse Commit with tag" commitType: REVERSE tag: "RC_1"
 | 
			
		||||
       commit id: "Hightlight Commit" commitType: HIGHLIGHT  tag: "8.8.4"
 | 
			
		||||
@@ -43,7 +43,7 @@ describe('Git Graph diagram', () => {
 | 
			
		||||
  });
 | 
			
		||||
  it('5: should render a simple gitgraph with two branches', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `gitgraph
 | 
			
		||||
      `gitGraph
 | 
			
		||||
       commit 
 | 
			
		||||
       commit
 | 
			
		||||
       branch develop
 | 
			
		||||
@@ -59,7 +59,7 @@ describe('Git Graph diagram', () => {
 | 
			
		||||
  });
 | 
			
		||||
  it('6: should render a simple gitgraph with two branches and merge commit', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `gitgraph
 | 
			
		||||
      `gitGraph
 | 
			
		||||
       commit 
 | 
			
		||||
       commit
 | 
			
		||||
       branch develop
 | 
			
		||||
@@ -76,7 +76,7 @@ describe('Git Graph diagram', () => {
 | 
			
		||||
  });
 | 
			
		||||
  it('7: should render a simple gitgraph with three branches and merge commit', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `gitgraph
 | 
			
		||||
      `gitGraph
 | 
			
		||||
       commit 
 | 
			
		||||
       commit
 | 
			
		||||
       branch nice_feature
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user