We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
expect
check
1 parent 2c3c553 commit 3162387Copy full SHA for 3162387
test/widgets/content_test.dart
@@ -1,3 +1,4 @@
1
+import 'package:checks/checks.dart';
2
import 'package:flutter/material.dart';
3
import 'package:flutter_test/flutter_test.dart';
4
import 'package:zulip/widgets/content.dart';
@@ -6,7 +7,7 @@ void main() {
6
7
testWidgets('Throws if no `PerAccountStoreWidget` ancestor', (WidgetTester tester) async {
8
await tester.pumpWidget(
9
const RealmContentNetworkImage('https://zulip.invalid/path/to/image.png', filterQuality: FilterQuality.medium));
- expect(tester.takeException(), isAssertionError);
10
+ check(tester.takeException()).isA<AssertionError>();
11
});
12
13
// TODO(#30): Simulate a `PerAccountStoreWidget` ancestor, to use in more tests:
0 commit comments