mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
test: remove unnecessary variables declarations
This commit is contained in:
parent
76b8de1f80
commit
28f08e308a
23 changed files with 416 additions and 492 deletions
|
@ -49,11 +49,10 @@ void main() {
|
|||
});
|
||||
|
||||
test('creates worktree at provided path from provided reference', () {
|
||||
final head = RevParse.single(repo: repo, spec: 'HEAD') as Commit;
|
||||
final worktreeBranch = Branch.create(
|
||||
repo: repo,
|
||||
name: 'v1',
|
||||
target: head,
|
||||
target: RevParse.single(repo: repo, spec: 'HEAD') as Commit,
|
||||
);
|
||||
final ref = Reference.lookup(repo: repo, name: 'refs/heads/v1');
|
||||
expect(repo.worktrees, <String>[]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue