mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 18:39:41 +02:00
Updated rendering test with fixed id
This commit is contained in:
@@ -4,9 +4,9 @@ describe('Git Graph diagram', () => {
|
|||||||
it('1: should render a simple gitgraph with commit on main branch', () => {
|
it('1: should render a simple gitgraph with commit on main branch', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`gitGraph
|
`gitGraph
|
||||||
commit
|
commit id: "1"
|
||||||
commit
|
commit id: "2"
|
||||||
commit
|
commit id: "3"
|
||||||
`,
|
`,
|
||||||
{}
|
{}
|
||||||
);
|
);
|
||||||
@@ -44,15 +44,15 @@ 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 id: "1"
|
||||||
commit
|
commit id: "2"
|
||||||
branch develop
|
branch develop
|
||||||
checkout develop
|
checkout develop
|
||||||
commit
|
commit id: "3"
|
||||||
commit
|
commit id: "4"
|
||||||
checkout main
|
checkout main
|
||||||
commit
|
commit id: "5"
|
||||||
commit
|
commit id: "6"
|
||||||
`,
|
`,
|
||||||
{}
|
{}
|
||||||
);
|
);
|
||||||
@@ -60,16 +60,16 @@ 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 id: "1"
|
||||||
commit
|
commit id: "2"
|
||||||
branch develop
|
branch develop
|
||||||
checkout develop
|
checkout develop
|
||||||
commit
|
commit id: "3"
|
||||||
commit
|
commit id: "4"
|
||||||
checkout main
|
checkout main
|
||||||
merge develop
|
merge develop
|
||||||
commit
|
commit id: "5"
|
||||||
commit
|
commit id: "6"
|
||||||
`,
|
`,
|
||||||
{}
|
{}
|
||||||
);
|
);
|
||||||
@@ -77,27 +77,27 @@ 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 id: "1"
|
||||||
commit
|
commit id: "2"
|
||||||
branch nice_feature
|
branch nice_feature
|
||||||
checkout nice_feature
|
checkout nice_feature
|
||||||
commit
|
commit id: "3"
|
||||||
checkout main
|
checkout main
|
||||||
commit
|
commit id: "4"
|
||||||
checkout nice_feature
|
checkout nice_feature
|
||||||
branch very_nice_feature
|
branch very_nice_feature
|
||||||
checkout very_nice_feature
|
checkout very_nice_feature
|
||||||
commit
|
commit id: "5"
|
||||||
checkout main
|
checkout main
|
||||||
commit
|
commit id: "6"
|
||||||
checkout nice_feature
|
checkout nice_feature
|
||||||
commit
|
commit id: "7"
|
||||||
checkout main
|
checkout main
|
||||||
merge nice_feature
|
merge nice_feature
|
||||||
checkout very_nice_feature
|
checkout very_nice_feature
|
||||||
commit
|
commit id: "8"
|
||||||
checkout main
|
checkout main
|
||||||
commit
|
commit id: "9"
|
||||||
`,
|
`,
|
||||||
{}
|
{}
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user