From a4de85acab5f7350571dc72234a6bd4063e6eb00 Mon Sep 17 00:00:00 2001 From: Tanguy Mossion Date: Wed, 21 Aug 2024 13:58:30 +0200 Subject: [PATCH] test(ConnectivityStreamProvider): provides connectivity stream --- .../refresh_when_network_available_extension_test.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/src/refresh_when_network_available_extension_test.dart b/test/src/refresh_when_network_available_extension_test.dart index fb671bd..7878f96 100644 --- a/test/src/refresh_when_network_available_extension_test.dart +++ b/test/src/refresh_when_network_available_extension_test.dart @@ -74,4 +74,14 @@ void main() { expect(numberOfFetchDataCalls, 2); }); }); + + group('ConnectivityStreamProvider tests', () { + test('connectivityStreamProvider provides an AsyncValue', () { + final container = ProviderContainer(); + final providerState = container.read(connectivityStreamProvider); + + // Check that the initial state is AsyncLoading. + expect(providerState, isA>>()); + }); + }); }