mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
refactor!: use class names instead of aliases from Repository in tests (#37)
BREAKING CHANGE: move API methods related to diffing into Diff class
This commit is contained in:
parent
3e1ece4e6f
commit
08cbe8a17f
28 changed files with 943 additions and 834 deletions
|
@ -42,7 +42,7 @@ void main() {
|
|||
expect(contents, 'Feature edit\n');
|
||||
|
||||
final index = repo.index;
|
||||
final diff = index.diffToWorkdir();
|
||||
final diff = Diff.indexToWorkdir(repo: repo, index: index);
|
||||
expect(diff.deltas, isEmpty);
|
||||
|
||||
index.free();
|
||||
|
@ -57,7 +57,7 @@ void main() {
|
|||
expect(contents, 'Feature edit\n');
|
||||
|
||||
final index = repo.index;
|
||||
final diff = index.diffToWorkdir();
|
||||
final diff = Diff.indexToWorkdir(repo: repo, index: index);
|
||||
expect(diff.deltas.length, 1);
|
||||
|
||||
index.free();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue