From de9616a1d0b40ce18a4bdfafa964df39b42381de Mon Sep 17 00:00:00 2001 From: Heinrich Date: Wed, 8 Nov 2023 11:01:53 +0800 Subject: [PATCH] Fixed formatting and Analysis --- .../melos/lib/src/commands/bootstrap.dart | 2 +- .../melos/test/commands/bootstrap_test.dart | 29 +++++++++++++------ 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/packages/melos/lib/src/commands/bootstrap.dart b/packages/melos/lib/src/commands/bootstrap.dart index 27b15373..5a9b2c4d 100644 --- a/packages/melos/lib/src/commands/bootstrap.dart +++ b/packages/melos/lib/src/commands/bootstrap.dart @@ -47,7 +47,7 @@ mixin _BootstrapMixin on _CleanMixin { environment: bootstrapCommandConfig.environment, dependencies: bootstrapCommandConfig.dependencies, devDependencies: bootstrapCommandConfig.devDependencies, - dependencyOverrides :bootstrapCommandConfig.dependencyOverrides + dependencyOverrides: bootstrapCommandConfig.dependencyOverrides, ); }).drain(); } diff --git a/packages/melos/test/commands/bootstrap_test.dart b/packages/melos/test/commands/bootstrap_test.dart index 5f50600e..5e42ce29 100644 --- a/packages/melos/test/commands/bootstrap_test.dart +++ b/packages/melos/test/commands/bootstrap_test.dart @@ -627,8 +627,12 @@ Generating IntelliJ IDE files... ), }, dependencyOverrides: const { - 'provider': GitReference('https://github.com/rrousselGit/provider.git'), - 'photo_view': GitReference('https://github.com/bluefireteam/photo_view.git'), + 'provider': GitReference( + 'https://github.com/rrousselGit/provider.git', + ), + 'photo_view': GitReference( + 'https://github.com/bluefireteam/photo_view.git', + ), }, ), ), @@ -716,7 +720,7 @@ Generating IntelliJ IDE files... }, ), ), - path: p.join(pkgB.path,'provider'), + path: p.join(pkgB.path, 'provider'), ); //create photo_view package @@ -735,10 +739,9 @@ Generating IntelliJ IDE files... }, ), ), - path: p.join(pkgB.path,'photo_view'), + path: p.join(pkgB.path, 'photo_view'), ); - final logger = TestLogger(); final config = await MelosWorkspaceConfig.fromWorkspaceRoot(workspaceDir); @@ -783,8 +786,12 @@ Generating IntelliJ IDE files... expect( pubspecA.dependencyOverrides, equals({ - 'provider': const GitReference('https://github.com/rrousselGit/provider.git'), - 'photo_view': const GitReference('https://github.com/bluefireteam/photo_view.git'), + 'provider': const GitReference( + 'https://github.com/rrousselGit/provider.git', + ), + 'photo_view': const GitReference( + 'https://github.com/bluefireteam/photo_view.git', + ), }), ); @@ -825,8 +832,12 @@ Generating IntelliJ IDE files... expect( pubspecB.dependencyOverrides, equals({ - 'provider': const GitReference('https://github.com/rrousselGit/provider.git'), - 'photo_view': const GitReference('https://github.com/bluefireteam/photo_view.git'), + 'provider': const GitReference( + 'https://github.com/rrousselGit/provider.git', + ), + 'photo_view': const GitReference( + 'https://github.com/bluefireteam/photo_view.git', + ), }), ); },