(t *testing.T)
| 1239 | } |
| 1240 | |
| 1241 | func TestStartDoneWithUncommittedChanges(t *testing.T) { |
| 1242 | _, configuration := setup(t) |
| 1243 | |
| 1244 | start(configuration) // should be 1 commit on mob-session so far |
| 1245 | createFile(t, "example.txt", "contentIrrelevant") |
| 1246 | |
| 1247 | done(configuration) |
| 1248 | |
| 1249 | assertOnBranch(t, "master") |
| 1250 | assertGitStatus(t, GitStatus{ |
| 1251 | "example.txt": "A", |
| 1252 | }) |
| 1253 | assertCommitsOnBranch(t, 1, "master") |
| 1254 | assertCommitsOnBranch(t, 1, "origin/master") |
| 1255 | assertNoMobSessionBranches(t, configuration, "mob-session") |
| 1256 | } |
| 1257 | |
| 1258 | func TestStartDoneNoSquashWithUncommittedChanges(t *testing.T) { |
| 1259 | _, configuration := setup(t) |
nothing calls this directly
no test coverage detected