diff --git a/packages/riverpod_generator/integration/build_yaml/test/build_yaml_test.dart b/packages/riverpod_generator/integration/build_yaml/test/build_yaml_test.dart new file mode 100644 index 000000000..f03578c84 --- /dev/null +++ b/packages/riverpod_generator/integration/build_yaml/test/build_yaml_test.dart @@ -0,0 +1,28 @@ +import 'package:build_yaml/main.dart'; +import 'package:test/test.dart'; + +void main() { + test('provider names', () { + expect(countPod.name, 'countPod'); + expect(countFuturePod.name, 'countFuturePod'); + expect(countStreamPod.name, 'countStreamPod'); + expect(countNotifierPod.name, 'countNotifierPod'); + expect(countAsyncNotifierPod.name, 'countAsyncNotifierPod'); + expect(countStreamNotifierPod.name, 'countStreamNotifierPod'); + }); + + test('provider family names', () { + expect(count2ProviderFamily.name, 'count2ProviderFamily'); + expect(countFuture2ProviderFamily.name, 'countFuture2ProviderFamily'); + expect(countStream2ProviderFamily.name, 'countStream2ProviderFamily'); + expect(countNotifier2ProviderFamily.name, 'countNotifier2ProviderFamily'); + expect( + countAsyncNotifier2ProviderFamily.name, + 'countAsyncNotifier2ProviderFamily', + ); + expect( + countStreamNotifier2ProviderFamily.name, + 'countStreamNotifier2ProviderFamily', + ); + }); +}