Skip to content

Commit 3162387

Browse files
committed
test [nfc]: Replace a stray expect with check
1 parent 2c3c553 commit 3162387

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/widgets/content_test.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'package:checks/checks.dart';
12
import 'package:flutter/material.dart';
23
import 'package:flutter_test/flutter_test.dart';
34
import 'package:zulip/widgets/content.dart';
@@ -6,7 +7,7 @@ void main() {
67
testWidgets('Throws if no `PerAccountStoreWidget` ancestor', (WidgetTester tester) async {
78
await tester.pumpWidget(
89
const RealmContentNetworkImage('https://zulip.invalid/path/to/image.png', filterQuality: FilterQuality.medium));
9-
expect(tester.takeException(), isAssertionError);
10+
check(tester.takeException()).isA<AssertionError>();
1011
});
1112

1213
// TODO(#30): Simulate a `PerAccountStoreWidget` ancestor, to use in more tests:

0 commit comments

Comments
 (0)