test: fix tests failing in ci

This commit is contained in:
Aleksey Kulikov 2021-10-27 17:35:20 +03:00
parent 7f0cd86e72
commit 0e329bd2b1
22 changed files with 291 additions and 257 deletions

View file

@ -23,14 +23,14 @@ void main() {
test('successfully creates new bare repo at provided path', () {
repo = Repository.init(path: initDir.path, bare: true);
expect(repo.path, '${initDir.path}/');
expect(repo.path, contains('${initDir.path}/'));
expect(repo.isBare, true);
});
test('successfully creates new standard repo at provided path', () {
repo = Repository.init(path: initDir.path);
expect(repo.path, '${initDir.path}/.git/');
expect(repo.path, contains('${initDir.path}/.git/'));
expect(repo.isBare, false);
expect(repo.isEmpty, true);
});
@ -43,7 +43,7 @@ void main() {
flags: {GitRepositoryInit.mkdir, GitRepositoryInit.mkpath},
);
expect(repo.path, '${initDir.path}/.git/');
expect(repo.path, contains('${initDir.path}/.git/'));
expect(repo.isBare, false);
expect(repo.isEmpty, true);
expect(