mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
test(tree): merge tests
This commit is contained in:
parent
c26e3f4539
commit
88d064bda2
1 changed files with 1 additions and 10 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue