Skip to content

Commit a4a7202

Browse files
chrisbobbegnprice
authored andcommitted
content test [nfc]: Add navObservers param to prepareContentBare
Callers can use this to check pushed routes.
1 parent c58c8b9 commit a4a7202

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/widgets/content_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ void main() {
9393
TestZulipBinding.ensureInitialized();
9494

9595
Future<void> prepareContentBare(WidgetTester tester, String html, {
96+
List<NavigatorObserver> navObservers = const [],
9697
bool wrapWithPerAccountStoreWidget = false,
9798
}) async {
9899
Widget widget = BlockContentList(nodes: parseContent(html).nodes);
@@ -111,6 +112,7 @@ void main() {
111112
theme: ThemeData(typography: zulipTypography(context)),
112113
localizationsDelegates: ZulipLocalizations.localizationsDelegates,
113114
supportedLocales: ZulipLocalizations.supportedLocales,
115+
navigatorObservers: navObservers,
114116
home: widget)));
115117
await tester.pump(); // global store
116118
if (wrapWithPerAccountStoreWidget) {

0 commit comments

Comments
 (0)