From 0ac060e71a32915f4b58f4db69e3d457f318c11b Mon Sep 17 00:00:00 2001 From: Pascal Welsch Date: Wed, 20 Nov 2024 23:21:13 +0100 Subject: [PATCH] Rename variables --- test/fonts/dependency_font_test.dart | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/fonts/dependency_font_test.dart b/test/fonts/dependency_font_test.dart index 1d2c38b3..9b0a0c2d 100644 --- a/test/fonts/dependency_font_test.dart +++ b/test/fonts/dependency_font_test.dart @@ -10,14 +10,14 @@ import 'font_test_project.dart'; void main() { test('When defined in pubspec a third-party font is loaded', () async { - final dependencyProject = + final dependencyFontProject = FontTestProject('test/fonts/templates/dependency_font'); - await dependencyProject.create(); + await dependencyFontProject.create(); - final testProject = FontTestProject('test/fonts/templates/app_font'); - await testProject.create( + final appFontProject = FontTestProject('test/fonts/templates/app_font'); + await appFontProject.create( dir: Directory( - '${dependencyProject.workingDir.path}/packages/app_font', + '${dependencyFontProject.workingDir.path}/packages/app_font', ), ); @@ -25,13 +25,13 @@ void main() { await Process.run( flutterExe, ['pub', 'get'], - workingDirectory: dependencyProject.workingDir.path, + workingDirectory: dependencyFontProject.workingDir.path, ); debugPrint('Run tests'); final test = await Process.start( flutterExe, ['test'], - workingDirectory: dependencyProject.workingDir.path, + workingDirectory: dependencyFontProject.workingDir.path, ); test.stdout.transform(utf8.decoder).listen((event) { debugPrint(event); @@ -42,7 +42,7 @@ void main() { final exitCode = await test.exitCode; if (exitCode != 0) { final failuresDir = - Directory('${dependencyProject.workingDir.path}/test/failures'); + Directory('${dependencyFontProject.workingDir.path}/test/failures'); if (failuresDir.existsSync()) { final testFailureDirectory = Directory('test/fonts/dependency_font_test/');