| Index: lib/src/throws_matcher.dart
|
| diff --git a/lib/src/throws_matcher.dart b/lib/src/throws_matcher.dart
|
| index b3a5323adbe0eb72e3a6268343f7056f92fe0e6d..461c585be70d8b6cc827dc4a4f6a5905c26f0b48 100644
|
| --- a/lib/src/throws_matcher.dart
|
| +++ b/lib/src/throws_matcher.dart
|
| @@ -93,16 +93,16 @@ class Throws extends Matcher {
|
| }
|
| }
|
|
|
| - Description describeMismatch(item, Description mismatchDescription,
|
| - Map matchState,
|
| - bool verbose) {
|
| + Description describeMismatch(
|
| + item, Description mismatchDescription, Map matchState, bool verbose) {
|
| if (item is! Function && item is! Future) {
|
| return mismatchDescription.add('is not a Function or Future');
|
| } else if (_matcher == null || matchState['exception'] == null) {
|
| return mismatchDescription.add('did not throw');
|
| } else {
|
| - mismatchDescription. add('threw ').
|
| - addDescriptionOf(matchState['exception']);
|
| + mismatchDescription
|
| + .add('threw ')
|
| + .addDescriptionOf(matchState['exception']);
|
| if (verbose) {
|
| mismatchDescription.add(' at ').add(matchState['stack'].toString());
|
| }
|
| @@ -110,4 +110,3 @@ class Throws extends Matcher {
|
| }
|
| }
|
| }
|
| -
|
|
|