Skip to content

Commit

Permalink
Add check of tag content to lightweight tag test
Browse files Browse the repository at this point in the history
  • Loading branch information
John McMahon committed Jan 1, 2024
1 parent 7b4cc25 commit e66669b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/tag_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ import 'test_utils.dart';
void main() {
test('Parse lightweight tag', () async {
final testDir = await createTempGitDir();

final contents = <String, String>{'something': 'value'};
const givenTagName = 'newTag';

await doDescriptorGitCommit(testDir, contents, 'Something');
final branchRef = await testDir.currentBranch();

await runGit(
['tag', 'newTag', branchRef.sha],
['tag', givenTagName, branchRef.sha],
processWorkingDir: testDir.path,
);

final tagsFound = await testDir.tags().toList();
expect(tagsFound, hasLength(1));
final foundTag = (await testDir.tags().toList()).first;
expect(foundTag.tag, equals(givenTagName));
});

test('Parse annotated tag', () async {
Expand Down

0 comments on commit e66669b

Please sign in to comment.