mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
refactor(repository)!: remove excessive aliases (#40)
BREAKING CHANGE: instead of removed aliases, API methods from relevant classes should be called (e.g. Commit.create, Reference.lookup, etc.)
This commit is contained in:
parent
432abffa89
commit
e7c18c35e2
13 changed files with 144 additions and 1063 deletions
|
@ -56,7 +56,7 @@ void main() {
|
|||
expect(repo.status.isEmpty, true);
|
||||
expect(swpPath.existsSync(), false);
|
||||
|
||||
repo.applyStash();
|
||||
Stash.apply(repo: repo);
|
||||
expect(swpPath.existsSync(), true);
|
||||
});
|
||||
|
||||
|
@ -131,7 +131,7 @@ void main() {
|
|||
final stash = repo.stashes.first;
|
||||
Stash.drop(repo: repo, index: stash.index);
|
||||
|
||||
expect(() => repo.applyStash(), throwsA(isA<LibGit2Error>()));
|
||||
expect(() => Stash.apply(repo: repo), throwsA(isA<LibGit2Error>()));
|
||||
});
|
||||
|
||||
test('throws when trying to drop with wrong index', () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue