Skip to content

Commit

Permalink
test: Fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinVignal committed Feb 14, 2024
1 parent 900389a commit 19e0f49
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,34 @@ void main() {
);

test('provider names', () {
expect(countPod.name, 'myCountPod');
expect(countFuturePod.name, 'myCountFuturePod');
expect(countStreamPod.name, 'myCountStreamPod');
expect(countNotifierPod.name, 'myCountNotifierPod');
expect(countAsyncNotifierPod.name, 'myCountAsyncNotifierPod');
expect(countStreamNotifierPod.name, 'myCountStreamNotifierPod');
expect(myCountPod.name, 'myCountPod');
expect(myCountFuturePod.name, 'myCountFuturePod');
expect(myCountStreamPod.name, 'myCountStreamPod');
expect(myCountNotifierPod.name, 'myCountNotifierPod');
expect(myCountAsyncNotifierPod.name, 'myCountAsyncNotifierPod');
expect(myCountStreamNotifierPod.name, 'myCountStreamNotifierPod');
});

test('provider family names', () {
expect(count2ProviderFamily.name, 'myFamilyCount2ProviderFamily');
expect(myFamilyCount2ProviderFamily.name, 'myFamilyCount2ProviderFamily');
expect(
countFuture2ProviderFamily.name,
myFamilyCountFuture2ProviderFamily.name,
'myFamilyCountFuture2ProviderFamily',
);
expect(
countStream2ProviderFamily.name,
myFamilyCountStream2ProviderFamily.name,
'myFamilyCountStream2ProviderFamily',
);
expect(
countNotifier2ProviderFamily.name,
myFamilyCountNotifier2ProviderFamily.name,
'myFamilyCountNotifier2ProviderFamily',
);
expect(
countAsyncNotifier2ProviderFamily.name,
myFamilyCountAsyncNotifier2ProviderFamily.name,
'myFamilyCountAsyncNotifier2ProviderFamily',
);
expect(
countStreamNotifier2ProviderFamily.name,
myFamilyCountStreamNotifier2ProviderFamily.name,
'myFamilyCountStreamNotifier2ProviderFamily',
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void main() {
test('custom prefix', () async {
const map = {'provider_name_prefix': 'my'};
final options = BuildYamlOptions.fromMap(map);
expect(options.providerNameSuffix, 'my');
expect(options.providerNamePrefix, 'my');
});

test('custom family prefix', () async {
Expand Down

0 comments on commit 19e0f49

Please sign in to comment.