From 88d064bda24f5174e0c0c8a1c74cde06bbdeaa7c Mon Sep 17 00:00:00 2001 From: Aleksey Kulikov Date: Thu, 2 Sep 2021 15:49:34 +0300 Subject: [PATCH] test(tree): merge tests --- test/tree_test.dart | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/test/tree_test.dart b/test/tree_test.dart index e1f5598..ae9c79b 100644 --- a/test/tree_test.dart +++ b/test/tree_test.dart @@ -34,19 +34,10 @@ void main() { expect(tree, isA()); }); - test('returns number of entries', () { + test('returns correct values', () { expect(tree.entries.length, 4); - }); - - test('returns sha of tree entry', () { expect(tree.entries.first.id.sha, fileSHA); - }); - - test('returns name of tree entry', () { expect(tree.entries[0].name, '.gitignore'); - }); - - test('returns filemode of tree entry', () { expect(tree.entries[0].filemode, GitFilemode.blob); });