-
-
Notifications
You must be signed in to change notification settings - Fork 956
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
adf545e
commit 756bb26
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
packages/riverpod_generator/integration/build_yaml/test/build_yaml_test.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', | ||
); | ||
}); | ||
} |