Fixed rendering test cases

This commit is contained in:
Ashish Jain
2022-03-17 19:07:16 +01:00
parent c1dead1187
commit 1ef58e286c

View File

@@ -3,7 +3,7 @@ import { imgSnapshotTest } from '../../helpers/util.js';
describe('Git Graph diagram', () => { describe('Git Graph diagram', () => {
it('1: should render a simple gitgraph with commit on master branch', () => { it('1: should render a simple gitgraph with commit on master branch', () => {
imgSnapshotTest( imgSnapshotTest(
`gitgraph `gitGraph
commit commit
commit 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', () => { it('2: should render a simple gitgraph with commit on master branch with Id', () => {
imgSnapshotTest( imgSnapshotTest(
`gitgraph `gitGraph
commit id: "One" commit id: "One"
commit id: "Two" commit id: "Two"
commit id: "Three" commit id: "Three"
@@ -23,7 +23,7 @@ describe('Git Graph diagram', () => {
}); });
it('3: should render a simple gitgraph with different commitTypes on master branch ', () => { it('3: should render a simple gitgraph with different commitTypes on master branch ', () => {
imgSnapshotTest( imgSnapshotTest(
`gitgraph `gitGraph
commit id: "Normal Commit" commit id: "Normal Commit"
commit id: "Reverse Commit" commitType: REVERSE commit id: "Reverse Commit" commitType: REVERSE
commit id: "Hightlight Commit" commitType: HIGHLIGHT 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 ', () => { it('4: should render a simple gitgraph with tags commitTypes on master branch ', () => {
imgSnapshotTest( imgSnapshotTest(
`gitgraph `gitGraph
commit id: "Normal Commit with tag" teg: "v1.0.0" commit id: "Normal Commit with tag" teg: "v1.0.0"
commit id: "Reverse Commit with tag" commitType: REVERSE tag: "RC_1" commit id: "Reverse Commit with tag" commitType: REVERSE tag: "RC_1"
commit id: "Hightlight Commit" commitType: HIGHLIGHT tag: "8.8.4" 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', () => { it('5: should render a simple gitgraph with two branches', () => {
imgSnapshotTest( imgSnapshotTest(
`gitgraph `gitGraph
commit commit
commit commit
branch develop branch develop
@@ -59,7 +59,7 @@ describe('Git Graph diagram', () => {
}); });
it('6: should render a simple gitgraph with two branches and merge commit', () => { it('6: should render a simple gitgraph with two branches and merge commit', () => {
imgSnapshotTest( imgSnapshotTest(
`gitgraph `gitGraph
commit commit
commit commit
branch develop branch develop
@@ -76,7 +76,7 @@ describe('Git Graph diagram', () => {
}); });
it('7: should render a simple gitgraph with three branches and merge commit', () => { it('7: should render a simple gitgraph with three branches and merge commit', () => {
imgSnapshotTest( imgSnapshotTest(
`gitgraph `gitGraph
commit commit
commit commit
branch nice_feature branch nice_feature