mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
test: fix tests failing in ci
This commit is contained in:
parent
7f0cd86e72
commit
0e329bd2b1
22 changed files with 291 additions and 257 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue