refactor: compose paths using path package

This commit is contained in:
Aleksey Kulikov 2021-12-31 12:00:04 +03:00
parent f2e78daa42
commit 59cf7174f6
36 changed files with 225 additions and 201 deletions

View file

@ -1,6 +1,7 @@
import 'dart:io';
import 'package:libgit2dart/libgit2dart.dart';
import 'package:path/path.dart' as p;
import 'package:test/test.dart';
import 'helpers/util.dart';
@ -12,8 +13,8 @@ void main() {
const sha = '6cbc22e509d72758ab4c8d9f287ea846b90c448b';
setUp(() {
tmpDir = setupRepo(Directory('test/assets/test_repo/'));
file = File('${tmpDir.path}/feature_file');
tmpDir = setupRepo(Directory(p.join('test', 'assets', 'test_repo')));
file = File(p.join(tmpDir.path, 'feature_file'));
repo = Repository.open(tmpDir.path);
});