You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/rfw/test/runtime_test.dart
+27-5Lines changed: 27 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -244,7 +244,7 @@ void main() {
244
244
),
245
245
);
246
246
expect(tester.takeException().toString(), contains('Could not find remote widget named'));
247
-
expect(tester.widget<ErrorWidget>(find.byType(ErrorWidget)).message, 'Could not find remote widget named widget in a, possibly because some dependencies were missing: b');
247
+
expect(tester.widget<ErrorWidget>(find.byType(ErrorWidget)).message, contains('Could not find remote widget named widget in a, possibly because some dependencies were missing: b'));
248
248
});
249
249
250
250
testWidgets('Missing libraries in specified widget', (WidgetTester tester) async {
@@ -258,7 +258,7 @@ void main() {
258
258
),
259
259
);
260
260
expect(tester.takeException().toString(), contains('Could not find remote widget named'));
261
-
expect(tester.widget<ErrorWidget>(find.byType(ErrorWidget)).message, 'Could not find remote widget named widget in a, possibly because some dependencies were missing: a');
261
+
expect(tester.widget<ErrorWidget>(find.byType(ErrorWidget)).message, contains('Could not find remote widget named widget in a, possibly because some dependencies were missing: a'));
262
262
});
263
263
264
264
testWidgets('Missing libraries in import via dependency', (WidgetTester tester) async {
@@ -276,7 +276,7 @@ void main() {
276
276
),
277
277
);
278
278
expect(tester.takeException().toString(), contains('Could not find remote widget named'));
279
-
expect(tester.widget<ErrorWidget>(find.byType(ErrorWidget)).message, 'Could not find remote widget named test in a, possibly because some dependencies were missing: b');
279
+
expect(tester.widget<ErrorWidget>(find.byType(ErrorWidget)).message, contains('Could not find remote widget named test in a, possibly because some dependencies were missing: b'));
0 commit comments