Index: pkg/unittest/lib/src/config.dart |
diff --git a/pkg/unittest/lib/src/config.dart b/pkg/unittest/lib/src/config.dart |
index c77019b0cf62ee40b045f9d66f2af5af46f47235..73de212d31f4f54ccf3b0a0f85dba770a45ea3b2 100644 |
--- a/pkg/unittest/lib/src/config.dart |
+++ b/pkg/unittest/lib/src/config.dart |
@@ -146,7 +146,7 @@ class Configuration { |
// TODO(nweiz): Use this simpler code once issue 2980 is fixed. |
// return str.replaceAll(new RegExp("^", multiLine: true), " "); |
- return Strings.join(str.split("\n").mappedBy((line) => " $line"), "\n"); |
+ return Strings.join(str.split("\n").map((line) => " $line"), "\n"); |
} |
/** Handle errors that happen outside the tests. */ |