@@ -84,12 +84,12 @@ ruleTester.run('no-missing-placeholders', rule, {
8484 ` ,
8585 `
8686 module.exports = context => {
87- context.report(node, 'foo {{bar}}', { bar: 'baz' });
87+ context.report(node, 'foo {{bar}}', { bar: 'baz' }); return {};
8888 };
8989 ` ,
9090 `
9191 module.exports = context => {
92- context.report(node, { line: 1, column: 3 }, 'foo {{bar}}', { bar: 'baz' });
92+ context.report(node, { line: 1, column: 3 }, 'foo {{bar}}', { bar: 'baz' }); return {};
9393 };
9494 ` ,
9595 `
@@ -118,14 +118,14 @@ ruleTester.run('no-missing-placeholders', rule, {
118118 `
119119 const MESSAGE = 'foo {{bar}}';
120120 module.exports = context => {
121- context.report(node, MESSAGE, { bar: 'baz' });
121+ context.report(node, MESSAGE, { bar: 'baz' }); return {};
122122 };
123123 ` ,
124124 // Message in variable but cannot statically determine its type.
125125 `
126126 const MESSAGE = getMessage();
127127 module.exports = context => {
128- context.report(node, MESSAGE, { baz: 'qux' });
128+ context.report(node, MESSAGE, { baz: 'qux' }); return {};
129129 };
130130 ` ,
131131 // Suggestion with placeholder
@@ -193,7 +193,7 @@ ruleTester.run('no-missing-placeholders', rule, {
193193 {
194194 code : `
195195 module.exports = context => {
196- context.report(node, 'foo {{bar}}', { baz: 'qux' });
196+ context.report(node, 'foo {{bar}}', { baz: 'qux' }); return {};
197197 };
198198 ` ,
199199 errors : [ error ( 'bar' ) ] ,
@@ -203,15 +203,15 @@ ruleTester.run('no-missing-placeholders', rule, {
203203 code : `
204204 const MESSAGE = 'foo {{bar}}';
205205 module.exports = context => {
206- context.report(node, MESSAGE, { baz: 'qux' });
206+ context.report(node, MESSAGE, { baz: 'qux' }); return {};
207207 };
208208 ` ,
209209 errors : [ error ( 'bar' , 'Identifier' ) ] ,
210210 } ,
211211 {
212212 code : `
213213 module.exports = context => {
214- context.report(node, { line: 1, column: 3 }, 'foo {{bar}}', { baz: 'baz' });
214+ context.report(node, { line: 1, column: 3 }, 'foo {{bar}}', { baz: 'baz' }); return {};
215215 };
216216 ` ,
217217 errors : [ error ( 'bar' ) ] ,
0 commit comments