diff --git a/packages/shorebird_cli/test/src/validators/validators_test.dart b/packages/shorebird_cli/test/src/validators/validators_test.dart new file mode 100644 index 000000000..8b2060214 --- /dev/null +++ b/packages/shorebird_cli/test/src/validators/validators_test.dart @@ -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'); + }); + }); +}