Skip to content

Commit de19fc4

Browse files
committed
Test initial value of sentRequestIdStateProvider
1 parent df25a1b commit de19fc4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/providers/ui_providers_test.dart

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,23 @@ void main() {
330330
expect(isDisposed, true);
331331
});
332332
});
333+
334+
group("Testing sentRequestIdStateProvider", () {
335+
testWidgets(
336+
'sentRequestIdStateProvider should have an initial value of null',
337+
(tester) async {
338+
await tester.pumpWidget(
339+
const ProviderScope(
340+
child: MaterialApp(
341+
home: CollectionPane(),
342+
),
343+
),
344+
);
345+
346+
// Verify that the initial value is null
347+
final collectionPane = tester.element(find.byType(CollectionPane));
348+
final container = ProviderScope.containerOf(collectionPane);
349+
expect(container.read(sentRequestIdStateProvider), null);
350+
});
351+
});
333352
}

0 commit comments

Comments
 (0)