diff --git a/test/src/connectivity_stream_provider_test.dart b/test/src/connectivity_stream_provider_test.dart new file mode 100644 index 0000000..bb50fa4 --- /dev/null +++ b/test/src/connectivity_stream_provider_test.dart @@ -0,0 +1,18 @@ +import 'package:connectivity_plus/connectivity_plus.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:riverpod/riverpod.dart'; +import 'package:riverpod_community_extensions/src/connectivity_stream_provider.dart'; + +void main() { + TestWidgetsFlutterBinding.ensureInitialized(); + + 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>>()); + }); + }); +} diff --git a/test/src/refresh_when_network_available_extension_test.dart b/test/src/refresh_when_network_available_extension_test.dart index 7878f96..fb671bd 100644 --- a/test/src/refresh_when_network_available_extension_test.dart +++ b/test/src/refresh_when_network_available_extension_test.dart @@ -74,14 +74,4 @@ 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>>()); - }); - }); }