@@ -30,6 +30,7 @@ ruleTester.run('report-message-format', rule, {
3030 };
3131 ` ,
3232 options : [ 'foo' ] ,
33+ name : 'with no languageOptions (options: foo)' ,
3334 } ,
3435 {
3536 // ESM
@@ -42,6 +43,7 @@ ruleTester.run('report-message-format', rule, {
4243 ` ,
4344 options : [ 'foo' ] ,
4445 languageOptions : { sourceType : 'module' } ,
46+ name : 'ESM (options: foo)' ,
4547 } ,
4648 {
4749 // With message as variable.
@@ -54,6 +56,7 @@ ruleTester.run('report-message-format', rule, {
5456 };
5557 ` ,
5658 options : [ 'foo' ] ,
59+ name : 'with message as variable (options: foo)' ,
5760 } ,
5861 {
5962 // With message as variable but cannot statically determine its type.
@@ -66,6 +69,7 @@ ruleTester.run('report-message-format', rule, {
6669 };
6770 ` ,
6871 options : [ 'foo' ] ,
72+ name : 'with message as variable but cannot statically determine its type (options: foo)' ,
6973 } ,
7074 {
7175 code : `
@@ -76,6 +80,7 @@ ruleTester.run('report-message-format', rule, {
7680 };
7781 ` ,
7882 options : [ 'f' ] ,
83+ name : 'with no languageOptions (options: f)' ,
7984 } ,
8085 {
8186 code : `
@@ -86,6 +91,7 @@ ruleTester.run('report-message-format', rule, {
8691 };
8792 ` ,
8893 options : [ 'foo' ] ,
94+ name : 'with message as variable but variable is not defined in scope (options: foo)' ,
8995 } ,
9096 {
9197 code : `
@@ -96,6 +102,7 @@ ruleTester.run('report-message-format', rule, {
96102 };
97103 ` ,
98104 options : [ '^foo$' ] ,
105+ name : 'no match with regex (options: ^foo$)' ,
99106 } ,
100107 {
101108 code : `
@@ -106,6 +113,7 @@ ruleTester.run('report-message-format', rule, {
106113 };
107114 ` ,
108115 options : [ '^foo$' ] ,
116+ name : 'object param with regex (options: ^foo$)' ,
109117 } ,
110118 {
111119 // Suggestion function
@@ -117,6 +125,7 @@ ruleTester.run('report-message-format', rule, {
117125 };
118126 ` ,
119127 options : [ '^foo$' ] ,
128+ name : 'suggestion function (options: ^foo$)' ,
120129 } ,
121130 {
122131 // Suggestion message
@@ -128,6 +137,7 @@ ruleTester.run('report-message-format', rule, {
128137 };
129138 ` ,
130139 options : [ '^foo$' ] ,
140+ name : 'suggestion message (options: ^foo$)' ,
131141 } ,
132142 {
133143 // Suggestion message with ternary expression
@@ -139,6 +149,7 @@ ruleTester.run('report-message-format', rule, {
139149 };
140150 ` ,
141151 options : [ '^foo$' ] ,
152+ name : 'suggestion message with ternary (options: ^foo$)' ,
142153 } ,
143154 {
144155 code : `
@@ -149,6 +160,7 @@ ruleTester.run('report-message-format', rule, {
149160 };
150161 ` ,
151162 options : [ 'bar' ] ,
163+ name : 'substring (options: bar)' ,
152164 } ,
153165 {
154166 code : `
@@ -159,6 +171,7 @@ ruleTester.run('report-message-format', rule, {
159171 };
160172 ` ,
161173 options : [ 'bar' ] ,
174+ name : 'substring with backticks (options: bar)' ,
162175 } ,
163176 {
164177 code : `
@@ -169,6 +182,7 @@ ruleTester.run('report-message-format', rule, {
169182 };
170183 ` ,
171184 options : [ 'bar' ] ,
185+ name : 'empty report (options: bar)' ,
172186 } ,
173187 {
174188 code : `
@@ -179,6 +193,7 @@ ruleTester.run('report-message-format', rule, {
179193 };
180194 ` ,
181195 options : [ 'foo' ] ,
196+ name : 'empty report (options: foo)' ,
182197 } ,
183198 {
184199 code : `
@@ -193,6 +208,7 @@ ruleTester.run('report-message-format', rule, {
193208 }
194209 ` ,
195210 options : [ 'foo' ] ,
211+ name : 'multiple meta.messages (options: foo)' ,
196212 } ,
197213 'module.exports = {};' , // No rule.
198214 ] ,
0 commit comments