Skip to content

Commit

Permalink
test(ConnectivityStreamProvider): provides connectivity stream
Browse files Browse the repository at this point in the history
  • Loading branch information
tanguymossion committed Aug 22, 2024
1 parent 141c2d2 commit a4de85a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/src/refresh_when_network_available_extension_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<AsyncLoading<List<ConnectivityResult>>>());
});
});
}

0 comments on commit a4de85a

Please sign in to comment.