Closed rgdoliveira closed 1 year ago
Would it be possible to add a test case where
branchHead
is not empty?
@lampajr Thanks, I've applied your suggestion. Regarding the test we are mocking the results of the git commands (like pull and merge) so I did the same for the head. So I'm not sure if it worth to change the Mock method to return something not empty and just check against this new value.
@rgdoliveira yeah the test looks like it is just checking if the headSpy is really called, so I agree having a not empty might be not so useful. Will try to find if there is a proper way to test it otherwise looks great to me as it is :)
Fixes #459