We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7917343 commit 69d78e6Copy full SHA for 69d78e6
test/ignore_test.dart
@@ -1,5 +1,4 @@
1
-import 'package:commitlint_cli/src/lint.dart';
2
-import 'package:commitlint_cli/src/types/rule.dart';
+import 'package:commitlint_cli/src/is_ignored.dart';
3
import 'package:test/test.dart';
4
5
void main() {
@@ -9,16 +8,7 @@ void main() {
9
8
# Conflicts:
10
# xyz.yaml
11
''';
12
- final result = await lint(
13
- message,
14
- {
15
- 'type-empty': Rule(
16
- severity: RuleSeverity.error,
17
- condition: RuleCondition.never,
18
- ),
19
- },
20
- defaultIgnores: true);
21
- expect(result.valid, true);
22
- expect(result.input, equals(message));
+ final result = isIgnored(message, defaultIgnores: true);
+ expect(result, true);
23
});
24
}
0 commit comments