Skip to content

Commit

Permalink
test: Add case for pkg names
Browse files Browse the repository at this point in the history
Signed-off-by: Caijinglong <[email protected]>
  • Loading branch information
CaiJingLong committed Jun 17, 2024
1 parent fff143d commit 81f7b73
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/dart_action_template_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,24 @@ void main() {
expect(convertPkgList('dio: 1.3.0+1').length, 1);
expect(convertPkgList('dio: 1.3.0-dev.1').length, 1);
expect(convertPkgList('dio: 1.3.0+dev.1').length, 1);

// Test all support package
final names = [
'dio',
'cookie_manager',
'http2_adapter',
'native_dio_adapter',
'compatibility_layer',
'web_adapter'
];

for (final name in names) {
expect(
convertPkgList('$name: 1.0.0').length,
1,
reason: 'Test $name',
);
}
});

group('Test permission:', () {
Expand Down

0 comments on commit 81f7b73

Please sign in to comment.