Fixed rendering test cases

This commit is contained in:
Ashish Jain 2022-03-17 19:07:16 +01:00
parent c1dead1187
commit 1ef58e286c
1 changed files with 7 additions and 7 deletions

View File

@ -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