feat(index): add binding and API method for git_index_new (#33)

This commit is contained in:
Aleksey Kulikov 2022-01-14 15:08:45 +03:00 committed by GitHub
parent 02ac220d46
commit cc78e7945f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 0 deletions

View file

@ -29,6 +29,10 @@ void main() {
const fileSha = 'e69de29bb2d1d6434b8b29ae775ad8c2e48c5391';
const featureFileSha = '9c78c21d6680a7ffebc76f7ac68cacc11d8f48bc';
test('creates new in memory index object', () {
expect(Index.newInMemory(), isA<Index>());
});
test('returns full path to the index file on disk', () {
expect(index.path, p.join(repo.path, 'index'));
});