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
|
@ -39,14 +39,15 @@ void main() {
|
|||
});
|
||||
|
||||
test('creates annotated commit from provided reference', () {
|
||||
final reference = Reference.lookup(repo: repo, name: 'refs/heads/master');
|
||||
const refName = 'refs/heads/master';
|
||||
final reference = Reference.lookup(repo: repo, name: refName);
|
||||
final annotated = AnnotatedCommit.fromReference(
|
||||
repo: repo,
|
||||
reference: reference,
|
||||
);
|
||||
|
||||
expect(annotated.oid, reference.target);
|
||||
expect(annotated.refName, 'refs/heads/master');
|
||||
expect(annotated.refName, refName);
|
||||
});
|
||||
|
||||
test(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue