mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-09-01 08:17:16 +02:00
#701 -- allow ability to check for leftover branches in goal compare
This commit is contained in:
parent
6e9ede0023
commit
6e8135a062
2 changed files with 36 additions and 0 deletions
|
@ -49,6 +49,18 @@ describe('Tree Compare', function() {
|
|||
);
|
||||
});
|
||||
|
||||
it('compares with considering leftover branches', function() {
|
||||
testMethod(
|
||||
{
|
||||
compareAllBranchesAndEnforceBranchCleanup: true,
|
||||
},
|
||||
'{"branches":{"master":{"target":"C2","id":"master","remoteTrackingBranchID":null},"foo":{"target":"C2","id":"foo","remoteTrackingBranchID":null}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"}},"tags":{},"HEAD":{"target":"foo","id":"HEAD"}}',
|
||||
{
|
||||
'{"branches":{"master":{"target":"C2","id":"master","remoteTrackingBranchID":null},"foo":{"target":"C2","id":"foo","remoteTrackingBranchID":null},"randoBran":{"target":"C2","id":"randoBran","remoteTrackingBranchID":null}},"commits":{"C0":{"parents":[],"id":"C0","rootCommit":true},"C1":{"parents":["C0"],"id":"C1"},"C2":{"parents":["C1"],"id":"C2"}},"tags":{},"HEAD":{"target":"foo","id":"HEAD"}}': false,
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
it('deep compares on origin tree', function() {
|
||||
testMethod(
|
||||
{}, // checked for all methods so this doesn't matter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue