refactor(index): use enum for file modes

This commit is contained in:
Aleksey Kulikov 2021-08-11 17:17:09 +03:00
parent 5feb12fdaa
commit 627519a31f
3 changed files with 45 additions and 12 deletions

View file

@ -38,7 +38,7 @@ void main() {
});
test('returns mode of index entry', () {
expect(index['file'].mode, 33188);
expect(index['file'].mode, GitFilemode.blob);
});
test('returns index entry at provided position', () {