mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 10:29:58 +00:00
fix(rulegen): update lint rule template (#7502)
This commit is contained in:
1 parent
60b28fc23a
commit
7da9a39b5d
1 file changed
+2
-2
@@ -71,8 +71,8 @@ fn test() {
|
||||
let fix = vec![
|
||||
{{fix_cases}}
|
||||
];
|
||||
Tester::new({{pascal_rule_name}}::NAME, pass, fail).expect_fix(fix).test_and_snapshot();
|
||||
Tester::new({{pascal_rule_name}}::NAME, {{pascal_rule_name}}::CATEGORY, pass, fail).expect_fix(fix).test_and_snapshot();
|
||||
{{else}}
|
||||
Tester::new({{pascal_rule_name}}::NAME, pass, fail).test_and_snapshot();
|
||||
Tester::new({{pascal_rule_name}}::NAME, {{pascal_rule_name}}::CATEGORY, pass, fail).test_and_snapshot();
|
||||
{{/if}}
|
||||
}
|
||||
Reference in new issue
Block a user