diff --git a/test/fonts/font_test_project.dart b/test/fonts/font_test_project.dart index d2243a27..b1183cd1 100644 --- a/test/fonts/font_test_project.dart +++ b/test/fonts/font_test_project.dart @@ -29,9 +29,8 @@ class FontTestProject { // overwrite the spot dependencies path final repoRoot = File.fromUri(Platform.script).parent.path; - final content = pubspec - .readAsStringSync() - .replaceAll('../../../../../.', repoRoot); + final content = + pubspec.readAsStringSync().replaceAll('../../../../', repoRoot); pubspec.writeAsStringSync(content); } if (file.name == 'test.dart') { diff --git a/test/fonts/templates/app_font/pubspec_template.yaml b/test/fonts/templates/app_font/pubspec_template.yaml index b1a1c441..f55ef929 100644 --- a/test/fonts/templates/app_font/pubspec_template.yaml +++ b/test/fonts/templates/app_font/pubspec_template.yaml @@ -12,7 +12,7 @@ dependencies: flutter_test: sdk: flutter spot: - path: ../../../../../. + path: ../../../../ dev_dependencies: