From 949814215e8520ff7107da447479a2188e32fc0b Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Mon, 8 Apr 2024 16:16:33 -0400 Subject: [PATCH] chore: fix lints --- .../src/commands/patch/patch_ios_command_test.dart | 14 ++++++++++---- .../patch/patch_ios_framework_command_test.dart | 14 ++++++++++---- .../commands/release/release_ios_command_test.dart | 3 ++- .../release_ios_framework_command_test.dart | 4 ++-- 4 files changed, 24 insertions(+), 11 deletions(-) diff --git a/packages/shorebird_cli/test/src/commands/patch/patch_ios_command_test.dart b/packages/shorebird_cli/test/src/commands/patch/patch_ios_command_test.dart index ce2db7a1..d2d3504c 100644 --- a/packages/shorebird_cli/test/src/commands/patch/patch_ios_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/patch/patch_ios_command_test.dart @@ -798,7 +798,9 @@ Please re-run the release command for this version or create a new release.'''), // Ensure we're using the correct flutter revision. expect( - shorebirdEnv.flutterRevision, equals(preLinkerFlutterRevision)); + shorebirdEnv.flutterRevision, + equals(preLinkerFlutterRevision), + ); return flutterBuildProcessResult; }); when( @@ -815,7 +817,9 @@ Please re-run the release command for this version or create a new release.'''), // Ensure we're using the correct flutter revision. expect( - shorebirdEnv.flutterRevision, equals(preLinkerFlutterRevision)); + shorebirdEnv.flutterRevision, + equals(preLinkerFlutterRevision), + ); return aotBuildProcessResult; }); when( @@ -831,7 +835,9 @@ Please re-run the release command for this version or create a new release.'''), ).thenAnswer((_) async { // Ensure we're using the correct flutter revision. expect( - shorebirdEnv.flutterRevision, equals(preLinkerFlutterRevision)); + shorebirdEnv.flutterRevision, + equals(preLinkerFlutterRevision), + ); return null; }); @@ -1235,7 +1241,7 @@ Please re-run the release command for this version or create a new release.'''), expect(exitCode, equals(ExitCode.software.code)); verify( () => logger.err( - 'Unable to find analyze_snapshot at ${analyzeSnapshotFile.path}', + '''Unable to find analyze_snapshot at ${analyzeSnapshotFile.path}''', ), ).called(1); }); diff --git a/packages/shorebird_cli/test/src/commands/patch/patch_ios_framework_command_test.dart b/packages/shorebird_cli/test/src/commands/patch/patch_ios_framework_command_test.dart index 04dc1ee0..f03cae06 100644 --- a/packages/shorebird_cli/test/src/commands/patch/patch_ios_framework_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/patch/patch_ios_framework_command_test.dart @@ -598,7 +598,9 @@ Please re-run the release command for this version or create a new release.'''), ), ).thenAnswer((_) async { expect( - shorebirdEnv.flutterRevision, equals(preLinkerFlutterRevision)); + shorebirdEnv.flutterRevision, + equals(preLinkerFlutterRevision), + ); return null; }); when( @@ -609,7 +611,9 @@ Please re-run the release command for this version or create a new release.'''), ), ).thenAnswer((_) async { expect( - shorebirdEnv.flutterRevision, equals(preLinkerFlutterRevision)); + shorebirdEnv.flutterRevision, + equals(preLinkerFlutterRevision), + ); return flutterBuildProcessResult; }); when( @@ -620,7 +624,9 @@ Please re-run the release command for this version or create a new release.'''), ), ).thenAnswer((_) async { expect( - shorebirdEnv.flutterRevision, equals(preLinkerFlutterRevision)); + shorebirdEnv.flutterRevision, + equals(preLinkerFlutterRevision), + ); return aotBuildProcessResult; }); @@ -1096,7 +1102,7 @@ Please re-run the release command for this version or create a new release.'''), expect(exitCode, equals(ExitCode.software.code)); verify( () => logger.err( - 'Unable to find analyze_snapshot at ${analyzeSnapshotFile.path}', + '''Unable to find analyze_snapshot at ${analyzeSnapshotFile.path}''', ), ).called(1); }); diff --git a/packages/shorebird_cli/test/src/commands/release/release_ios_command_test.dart b/packages/shorebird_cli/test/src/commands/release/release_ios_command_test.dart index 5854174a..4d4a7449 100644 --- a/packages/shorebird_cli/test/src/commands/release/release_ios_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/release/release_ios_command_test.dart @@ -382,7 +382,8 @@ flutter: expect(exitCode, equals(ExitCode.usage.code)); verify( () => logger.err( - 'Shorebird does not currently support obfuscation on iOS.'), + 'Shorebird does not currently support obfuscation on iOS.', + ), ).called(1); }); }); diff --git a/packages/shorebird_cli/test/src/commands/release/release_ios_framework_command_test.dart b/packages/shorebird_cli/test/src/commands/release/release_ios_framework_command_test.dart index f473496c..733263dc 100644 --- a/packages/shorebird_cli/test/src/commands/release/release_ios_framework_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/release/release_ios_framework_command_test.dart @@ -115,8 +115,8 @@ flutter: File( p.join(projectRoot.path, 'shorebird.yaml'), ).writeAsStringSync('app_id: $appId'); - // Create an xcframework in the release directory to simulate running this - // command a subsequent time. + // Create an xcframework in the release directory to simulate running + // this command a subsequent time. Directory(p.join(projectRoot.path, 'release', 'Flutter.xcframework')) .createSync(recursive: true); Directory(