Skip to content

Commit

Permalink
Rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Nov 20, 2024
1 parent 6090718 commit 0ac060e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/fonts/dependency_font_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@ 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',
),
);

debugPrint('Run pub get');
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);
Expand All @@ -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/');
Expand Down

0 comments on commit 0ac060e

Please sign in to comment.