Skip to content

Commit 5835be0

Browse files
committed
Upgrade melos
1 parent bbad55d commit 5835be0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ dev_dependencies:
2828
sdk: flutter
2929
flutter_lints: ^2.0.1
3030
meta: ^1.8.0
31+
melos: ^3.0.1
3132

3233
flutter:

test/flutter_html_test.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,19 @@ void main() {
8181
expect(find.text('Text', findRichText: true), findsNothing);
8282
});
8383

84-
testWidgets('Check that a custom element is not displayed', (tester) async {
84+
testWidgets('Check that a custom element is displayed when configured',
85+
(tester) async {
8586
await tester.pumpWidget(
8687
MaterialApp(
8788
home: Html(
8889
data: "<custom>Text</custom>",
8990
tagsList: Html.tags..add('custom'),
91+
extensions: [
92+
TagExtension(
93+
tagsToExtend: {"custom"},
94+
builder: (context) => Text(context.innerHtml),
95+
),
96+
],
9097
),
9198
),
9299
);

0 commit comments

Comments
 (0)