Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ void main() {
late CodePushClientWrapper codePushClientWrapper;
late ShorebirdValidator shorebirdValidator;
late ShorebirdLogger logger;
late Progress progress;
late AppsCommand command;

R runWithOverrides<R>(R Function() body) {
Expand All @@ -56,11 +55,9 @@ void main() {
argResults = MockArgResults();
codePushClientWrapper = MockCodePushClientWrapper();
logger = MockShorebirdLogger();
progress = MockProgress();
shorebirdValidator = MockShorebirdValidator();
command = runWithOverrides(AppsCommand.new)..testArgResults = argResults;

when(() => logger.progress(any())).thenReturn(progress);
when(() => argResults.rest).thenReturn([]);
when(
() => shorebirdValidator.validatePreconditions(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ void main() {
late CodePushClientWrapper codePushClientWrapper;
late ShorebirdValidator shorebirdValidator;
late ShorebirdLogger logger;
late Progress progress;
late OrgsCommand command;

R runWithOverrides<R>(R Function() body) {
Expand All @@ -62,11 +61,9 @@ void main() {
argResults = MockArgResults();
codePushClientWrapper = MockCodePushClientWrapper();
logger = MockShorebirdLogger();
progress = MockProgress();
shorebirdValidator = MockShorebirdValidator();
command = runWithOverrides(OrgsCommand.new)..testArgResults = argResults;

when(() => logger.progress(any())).thenReturn(progress);
when(() => argResults.rest).thenReturn([]);
when(
() => shorebirdValidator.validatePreconditions(
Expand Down
Loading