Skip to content

Commit

Permalink
tests(shorebird_cli): add missing validators tests
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Jan 3, 2025
1 parent ce2b9eb commit b6db965
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/shorebird_cli/test/src/validators/validators_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import 'package:shorebird_cli/src/validators/validators.dart';
import 'package:test/test.dart';

void main() {
group(ValidationIssue, () {
test('has an error factory constructor', () {
final issue = ValidationIssue.error(message: 'error message');
expect(issue.severity, ValidationIssueSeverity.error);
expect(issue.message, 'error message');
});

test('has a warning factory constructor', () {
final issue = ValidationIssue.warning(message: 'warning message');
expect(issue.severity, ValidationIssueSeverity.warning);
expect(issue.message, 'warning message');
});
});
}

0 comments on commit b6db965

Please sign in to comment.