mirror of
https://github.com/rrousselGit/riverpod.git
synced 2025-08-26 20:20:18 +08:00
24 lines
561 B
Dart
24 lines
561 B
Dart
// ignore_for_file: unused_local_variable
|
|
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:riverpod/riverpod.dart';
|
|
|
|
import 'create_container.dart';
|
|
|
|
final provider = Provider((_) => 42);
|
|
|
|
/* SNIPPET START */
|
|
void main() {
|
|
test('Some description', () {
|
|
// Create a ProviderContainer for this test.
|
|
// DO NOT share ProviderContainers between tests.
|
|
final container = createContainer();
|
|
|
|
// TODO: use the container to test your application.
|
|
expect(
|
|
container.read(provider),
|
|
equals('some value'),
|
|
);
|
|
});
|
|
}
|