diff --git a/pkg/dartdev/lib/src/commands/test.dart b/pkg/dartdev/lib/src/commands/test.dart index a9ffa422caf..da856748571 100644 --- a/pkg/dartdev/lib/src/commands/test.dart +++ b/pkg/dartdev/lib/src/commands/test.dart @@ -50,7 +50,7 @@ class TestCommand extends DartdevCommand { In order to run tests, you need to add a dependency on package:test in your pubspec.yaml file: -${ansi.emphasized('dev_dependencies:\n test: any')} +${ansi.emphasized('dev_dependencies:\n test: ^1.0.0')} See https://pub.dev/packages/test#-installing-tab- for more information on adding package:test, and https://dart.dev/guides/testing for general diff --git a/pkg/dartdev/test/commands/test_test.dart b/pkg/dartdev/test/commands/test_test.dart index 1b390ff65f3..e1e9b5cffa1 100644 --- a/pkg/dartdev/test/commands/test_test.dart +++ b/pkg/dartdev/test/commands/test_test.dart @@ -43,12 +43,6 @@ void defineTest() { 'In order to run tests, you need to add a dependency on package:test', ), ); - expect( - result.stdout, - contains( - 'dev_dependencies:\n test: any', - ), - ); }, skip: 'https://github.com/dart-lang/sdk/issues/40854'); test('has dependency', () {