GitGraph: added 2x e2e tests for branches not used immediately

My focus earlier on had been on relationship to `main` branch
so this is to ensure that we have some tests that cover
relationship between a pair of branches that doesn't
include `main`.
This commit is contained in:
Guy Pursey 2023-10-24 21:47:37 +01:00
parent 0555368e1c
commit f7d83e2cda

View File

@ -765,4 +765,50 @@ gitGraph TB:
{}
);
});
it('38: should render GitGraph with branch and sub-branch neither of which used immediately', () => {
imgSnapshotTest(
`gitGraph LR:
commit
branch x
checkout main
commit
checkout x
commit
checkout main
merge x
checkout x
branch y
checkout x
commit
checkout y
commit
checkout x
merge y
`,
{}
);
});
it('39: should render GitGraph with branch and sub-branch neither of which used immediately | Vertical Branch', () => {
imgSnapshotTest(
`gitGraph TB:
commit
branch x
checkout main
commit
checkout x
commit
checkout main
merge x
checkout x
branch y
checkout x
commit
checkout y
commit
checkout x
merge y
`,
{}
);
});
});