Index: test/run/runs_the_script_in_checked_mode_test.dart |
diff --git a/test/run/runs_the_script_in_checked_mode_test.dart b/test/run/runs_the_script_in_checked_mode_test.dart |
index 28a0fd946ba1f762d9f651d6a3d121a805f12f9c..b348f9a1360e543f5a73a8e710f2f453bedfc2d8 100644 |
--- a/test/run/runs_the_script_in_checked_mode_test.dart |
+++ b/test/run/runs_the_script_in_checked_mode_test.dart |
@@ -7,22 +7,16 @@ import 'package:scheduled_test/scheduled_test.dart'; |
import '../descriptor.dart' as d; |
import '../test_pub.dart'; |
-const SCRIPT = """ |
main() { |
- int a = true; |
-} |
-"""; |
- |
-main() { |
- integration('runs the script in checked mode by default', () { |
+ integration('runs the script in checked mode with "--checked"', () { |
d.dir(appPath, [ |
d.appPubspec(), |
d.dir("bin", [ |
- d.file("script.dart", SCRIPT) |
+ d.file("script.dart", "main() { int a = true; }") |
]) |
]).create(); |
- schedulePub(args: ["run", "bin/script"], |
+ schedulePub(args: ["run", "--checked", "bin/script"], |
error: contains("'bool' is not a subtype of type 'int' of 'a'"), |
exitCode: 255); |
}); |