Skip to content

Commit cd9fb60

Browse files
committed
test: add not settings unit case for rule filename-naming-convention
1 parent b71948d commit cd9fb60

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/lib/rules/filename-naming-convention.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,22 @@ ruleTester.run(
592592
}
593593
);
594594

595+
ruleTester.run(
596+
'filename-naming-convention with fex that has not been set',
597+
rule,
598+
{
599+
valid: [
600+
{
601+
code: "var foo = 'bar';",
602+
filename: 'src/utils/CalculatePrice.ts',
603+
options: [{ '*.js': 'CAMEL_CASE', '*.jsx': 'CAMEL_CASE' }],
604+
},
605+
],
606+
607+
invalid: [],
608+
}
609+
);
610+
595611
ruleTester.run(
596612
"filename-naming-convention with option: [{ '*.js': 'FOO', '.jsx': 'FLAT_CASE' }]",
597613
rule,

0 commit comments

Comments
 (0)