test: remove unnecessary variables declarations

This commit is contained in:
Aleksey Kulikov 2022-04-21 19:46:19 +03:00
parent 76b8de1f80
commit 28f08e308a
23 changed files with 416 additions and 492 deletions

View file

@ -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(