mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
test(repository): add test for merge message
This commit is contained in:
parent
628aa610d8
commit
188cdc4354
1 changed files with 4 additions and 0 deletions
|
@ -247,8 +247,12 @@ void main() {
|
||||||
final cherry = repo['5aecfa0fb97eadaac050ccb99f03c3fb65460ad4'] as Commit;
|
final cherry = repo['5aecfa0fb97eadaac050ccb99f03c3fb65460ad4'] as Commit;
|
||||||
repo.cherryPick(cherry);
|
repo.cherryPick(cherry);
|
||||||
expect(repo.state, GitRepositoryState.cherrypick.value);
|
expect(repo.state, GitRepositoryState.cherrypick.value);
|
||||||
|
expect(repo.message, 'add another feature file\n');
|
||||||
final index = repo.index;
|
final index = repo.index;
|
||||||
expect(index.conflicts, isEmpty);
|
expect(index.conflicts, isEmpty);
|
||||||
|
// pretend we've done commit
|
||||||
|
repo.removeMessage();
|
||||||
|
expect(() => repo.message, throwsA(isA<LibGit2Error>()));
|
||||||
|
|
||||||
index.free();
|
index.free();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue