-
Notifications
You must be signed in to change notification settings - Fork 11
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
Showing
6 changed files
with
92 additions
and
84 deletions.
There are no files selected for viewing
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
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
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
34 changes: 34 additions & 0 deletions
34
very_good_core/hooks/test/src/models/ios_application_id_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,34 @@ | ||
import 'package:test/test.dart'; | ||
import 'package:very_good_core_hooks/very_good_core_hooks.dart'; | ||
|
||
void main() { | ||
group('$IosApplicationId', () { | ||
group('fallback', () { | ||
test( | ||
'concatenates organization name with project name in param case', | ||
() { | ||
const organizationName = 'com.example.hello-world'; | ||
const projectName = 'my app'; | ||
final iOsApplicationId = IosApplicationId.fallback( | ||
organizationName: organizationName, | ||
projectName: projectName, | ||
); | ||
expect(iOsApplicationId.value, 'com.example.hello-world.my-app'); | ||
}, | ||
); | ||
|
||
test( | ||
'ignores empty parts', | ||
() { | ||
const organizationName = 'com.example.hello_world'; | ||
const projectName = 'my app'; | ||
final iOsApplicationId = IosApplicationId.fallback( | ||
organizationName: organizationName, | ||
projectName: projectName, | ||
); | ||
expect(iOsApplicationId.value, 'com.example.hello-world.my-app'); | ||
}, | ||
); | ||
}); | ||
}); | ||
} |
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
34 changes: 34 additions & 0 deletions
34
very_good_core/hooks/test/src/models/windows_application_id_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,34 @@ | ||
import 'package:test/test.dart'; | ||
import 'package:very_good_core_hooks/very_good_core_hooks.dart'; | ||
|
||
void main() { | ||
group('$WindowsApplicationId', () { | ||
group('fallback', () { | ||
test( | ||
'concatenates organization name with project name in param case', | ||
() { | ||
const organizationName = 'com.example.hello-world'; | ||
const projectName = 'my app'; | ||
final windowsApplicationId = WindowsApplicationId.fallback( | ||
organizationName: organizationName, | ||
projectName: projectName, | ||
); | ||
expect(windowsApplicationId.value, 'com.example.hello-world.my-app'); | ||
}, | ||
); | ||
|
||
test( | ||
'ignores empty parts', | ||
() { | ||
const organizationName = 'com.example.hello_world'; | ||
const projectName = 'my app'; | ||
final windowsApplicationId = WindowsApplicationId.fallback( | ||
organizationName: organizationName, | ||
projectName: projectName, | ||
); | ||
expect(windowsApplicationId.value, 'com.example.hello-world.my-app'); | ||
}, | ||
); | ||
}); | ||
}); | ||
} |