mirror of
https://github.com/foss42/apidash.git
synced 2025-07-04 07:18:11 +08:00
Test initial value of sentRequestIdStateProvider
This commit is contained in:
@ -330,4 +330,23 @@ void main() {
|
|||||||
expect(isDisposed, true);
|
expect(isDisposed, true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
group("Testing sentRequestIdStateProvider", () {
|
||||||
|
testWidgets(
|
||||||
|
'sentRequestIdStateProvider should have an initial value of null',
|
||||||
|
(tester) async {
|
||||||
|
await tester.pumpWidget(
|
||||||
|
const ProviderScope(
|
||||||
|
child: MaterialApp(
|
||||||
|
home: CollectionPane(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
// Verify that the initial value is null
|
||||||
|
final collectionPane = tester.element(find.byType(CollectionPane));
|
||||||
|
final container = ProviderScope.containerOf(collectionPane);
|
||||||
|
expect(container.read(sentRequestIdStateProvider), null);
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user