Index: utils/tests/pub/update/pub_update_test.dart |
diff --git a/utils/tests/pub/update/pub_update_test.dart b/utils/tests/pub/update/pub_update_test.dart |
index 831d2ce8a10839fd58b4b63d0a1b8ad0ec57ed16..f4900f5e9e41f5258c75858481c828d2abddc997 100644 |
--- a/utils/tests/pub/update/pub_update_test.dart |
+++ b/utils/tests/pub/update/pub_update_test.dart |
@@ -15,7 +15,7 @@ main() { |
dir(appPath, []).scheduleCreate(); |
schedulePub(args: ['update'], |
- error: new RegExp(r'^Could not find a file named "pubspec.yaml"'), |
+ error: const RegExp(r'^Could not find a file named "pubspec.yaml"'), |
exitCode: 1); |
run(); |
@@ -27,7 +27,7 @@ main() { |
]).scheduleCreate(); |
schedulePub(args: ['update'], |
- error: new RegExp(r'^pubspec.yaml is missing the required "name" ' |
+ error: const RegExp(r'^pubspec.yaml is missing the required "name" ' |
r'field \(e\.g\. "name: myapp"\)\.'), |
exitCode: 1); |
@@ -44,7 +44,7 @@ main() { |
]).scheduleCreate(); |
schedulePub(args: ['update'], |
- output: new RegExp(r"Dependencies updated!$")); |
+ output: const RegExp(r"Dependencies updated!$")); |
dir(packagesPath, [ |
dir("myapp_name", [ |
@@ -63,7 +63,7 @@ main() { |
]).scheduleCreate(); |
schedulePub(args: ['update'], |
- output: new RegExp(r"Dependencies updated!$")); |
+ output: const RegExp(r"Dependencies updated!$")); |
dir(packagesPath, [ |
nothing("myapp_name") |
@@ -88,7 +88,7 @@ main() { |
]).scheduleCreate(); |
schedulePub(args: ['update'], |
- output: new RegExp(r"Dependencies updated!$")); |
+ output: const RegExp(r"Dependencies updated!$")); |
packagesDir({"foo": null}).scheduleValidate(); |