Fix pub upgrade to work with new arguments (#74060)
This commit is contained in:
committed by
GitHub
parent
97e82d791b
commit
bf89943d94
@@ -374,6 +374,7 @@ void main() {
|
||||
expectDependenciesResolved(projectPath);
|
||||
expectZeroPluginsInjected(projectPath);
|
||||
}, overrides: <Type, Generator>{
|
||||
Stdio: () => MockStdio()..stdout.terminalColumns = 80,
|
||||
Pub: () => Pub(
|
||||
fileSystem: globals.fs,
|
||||
logger: globals.logger,
|
||||
|
||||
@@ -36,7 +36,13 @@ class ThrowingPub implements Pub {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> interactively(List<String> arguments, {String directory, @required Stdio stdio,}) {
|
||||
Future<void> interactively(
|
||||
List<String> arguments, {
|
||||
String directory,
|
||||
@required Stdio stdio,
|
||||
bool touchesPackageConfig = false,
|
||||
bool generateSyntheticPackage = false,
|
||||
}) {
|
||||
throw UnsupportedError('Attempted to invoke pub during test.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user