test(tree): merge tests

This commit is contained in:
Aleksey Kulikov 2021-09-02 15:49:34 +03:00
parent c26e3f4539
commit 88d064bda2

View file

@ -34,19 +34,10 @@ void main() {
expect(tree, isA<Tree>());
});
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);
});