File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -93,16 +93,17 @@ void main() {
93
93
TestZulipBinding .ensureInitialized ();
94
94
95
95
Future <void > prepareContentBare (WidgetTester tester, String html) async {
96
- await tester.pumpWidget (Builder (
97
- builder: (context) {
98
- return MaterialApp (
96
+ Widget widget = BlockContentList (nodes: parseContent (html).nodes);
97
+
98
+ widget = Scaffold (body: widget);
99
+
100
+ await tester.pumpWidget (
101
+ Builder (builder: (context) =>
102
+ MaterialApp (
99
103
theme: ThemeData (typography: zulipTypography (context)),
100
104
localizationsDelegates: ZulipLocalizations .localizationsDelegates,
101
105
supportedLocales: ZulipLocalizations .supportedLocales,
102
- home: Scaffold (body: BlockContentList (nodes: parseContent (html).nodes)),
103
- );
104
- }
105
- ));
106
+ home: widget)));
106
107
}
107
108
108
109
/// Test that the given content example renders without throwing an exception.
You can’t perform that action at this time.
0 commit comments