From 2f896e618029db11b9162d7067c2c23002134ce3 Mon Sep 17 00:00:00 2001 From: Aleksey Kulikov Date: Wed, 4 Aug 2021 15:42:24 +0300 Subject: [PATCH] test(reference): add tests for tag --- test/reference_test.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/reference_test.dart b/test/reference_test.dart index 955fca7..1c65343 100644 --- a/test/reference_test.dart +++ b/test/reference_test.dart @@ -51,6 +51,7 @@ void main() { { 'refs/heads/feature': '5aecfa0fb97eadaac050ccb99f03c3fb65460ad4', 'refs/heads/master': '78b8bf123e3952c970ae5c1ce0a3ea1d1336f6e8', + 'refs/tags/v0.1': '78b8bf123e3952c970ae5c1ce0a3ea1d1336f6e8', }, ); }); @@ -79,8 +80,8 @@ void main() { }); test('checks if reference is a tag', () { - final ref = Reference.lookup(repo, 'refs/heads/master'); - expect(ref.isTag, false); + final ref = Reference.lookup(repo, 'refs/tags/v0.1'); + expect(ref.isTag, true); ref.free(); });