Skip to content

Commit 41e3104

Browse files
committed
added additional tests
1 parent 8cfec3f commit 41e3104

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/lib/rules/require-test-case-name.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ ruleTester.run('test-case-name-property', rule, {
5555
getTestCases([
5656
'{ code: "foo", name: "my test", options: ["bar"], settings: { setting1: "bar" } }',
5757
]),
58+
getTestCases(['foo']),
59+
getTestCases(['{ code: foo }']),
60+
getTestCases(['foo()']),
61+
getTestCases(['{ code: foo() }']),
62+
// eslint-disable-next-line no-template-curly-in-string -- testing edge cases
63+
getTestCases(['`foo;${bar}`']),
5864
getTestCases([], ['{ code: "foo", errors: ["some error"] }']),
5965
getTestCases(
6066
[],

0 commit comments

Comments
 (0)