Write a test for heading being deleted

This test passes :(

https://github.com/GitJournal/GitJournal/issues/579

On the plus side, I've learnt a lot about widget testing.
This commit is contained in:
Vishesh Handa
2022-03-01 17:10:47 +01:00
parent 33610309a9
commit 51a2b09332
3 changed files with 68 additions and 16 deletions

View File

@ -33,8 +33,7 @@ Future<void> setupFixture(String repoPath, GitHash hash) async {
var repo = "https://github.com/GitJournal/test_data";
await runGit('clone $repo $repoPath');
await runGit('checkout $hash', repoPath);
await runGit('checkout -b main', repoPath);
await runGit('checkout -b main $hash', repoPath);
await runGit('remote rm origin', repoPath);
}