GitGraph: added e2e tests for multiple branches from one commit

This commit is contained in:
Guy Pursey
2023-10-15 13:37:35 +01:00
parent 3e18e76d31
commit 25a678caec

View File

@@ -701,4 +701,38 @@ gitGraph TB:
{}
);
});
it('34: should render a simple gitgraph with two branches from same commit', () => {
imgSnapshotTest(
`gitGraph
commit
commit
branch feature-001
commit
commit
checkout main
branch feature-002
commit
checkout feature-001
merge feature-002
`,
{}
);
});
it('35: should render a simple gitgraph with two branches from same commit | Vertical Branch', () => {
imgSnapshotTest(
`gitGraph
commit
commit
branch feature-001
commit
commit
checkout main
branch feature-002
commit
checkout feature-001
merge feature-002
`,
{}
);
});
});