| Index: third_party/pkg/di/test/fixed-unittest.dart
|
| diff --git a/third_party/pkg/di/test/fixed-unittest.dart b/third_party/pkg/di/test/fixed-unittest.dart
|
| index cfb1e8dbfdf3dd8d85c09629675947c5af722a25..5639d27bbbf66498af721895368c246dccf7cd08 100644
|
| --- a/third_party/pkg/di/test/fixed-unittest.dart
|
| +++ b/third_party/pkg/di/test/fixed-unittest.dart
|
| @@ -19,9 +19,11 @@ Matcher toContain(expected) => contains(expected);
|
| Matcher toBe(expected) => same(expected);
|
| Matcher instanceOf(Type t) => new IsInstanceOfTypeMatcher(t);
|
|
|
| -Matcher toThrow(Type exceptionClass, String message) =>
|
| - new ThrowsMatcher(new ComplexExceptionMatcher(
|
| - instanceOf(exceptionClass), toContain(message)));
|
| +Matcher toThrow(Type exceptionClass, [message]) => message == null
|
| + ? new ThrowsMatcher(instanceOf(exceptionClass))
|
| + : new ThrowsMatcher(new ComplexExceptionMatcher(
|
| + instanceOf(exceptionClass),
|
| + message is Matcher ? message : toContain(message)));
|
|
|
| Matcher not(Matcher matcher) => new NegateMatcher(matcher);
|
|
|
|
|