@@ -84,12 +84,12 @@ ruleTester.run('no-missing-placeholders', rule, {
84
84
` ,
85
85
`
86
86
module.exports = context => {
87
- context.report(node, 'foo {{bar}}', { bar: 'baz' });
87
+ context.report(node, 'foo {{bar}}', { bar: 'baz' }); return {};
88
88
};
89
89
` ,
90
90
`
91
91
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 {};
93
93
};
94
94
` ,
95
95
`
@@ -118,14 +118,14 @@ ruleTester.run('no-missing-placeholders', rule, {
118
118
`
119
119
const MESSAGE = 'foo {{bar}}';
120
120
module.exports = context => {
121
- context.report(node, MESSAGE, { bar: 'baz' });
121
+ context.report(node, MESSAGE, { bar: 'baz' }); return {};
122
122
};
123
123
` ,
124
124
// Message in variable but cannot statically determine its type.
125
125
`
126
126
const MESSAGE = getMessage();
127
127
module.exports = context => {
128
- context.report(node, MESSAGE, { baz: 'qux' });
128
+ context.report(node, MESSAGE, { baz: 'qux' }); return {};
129
129
};
130
130
` ,
131
131
// Suggestion with placeholder
@@ -193,7 +193,7 @@ ruleTester.run('no-missing-placeholders', rule, {
193
193
{
194
194
code : `
195
195
module.exports = context => {
196
- context.report(node, 'foo {{bar}}', { baz: 'qux' });
196
+ context.report(node, 'foo {{bar}}', { baz: 'qux' }); return {};
197
197
};
198
198
` ,
199
199
errors : [ error ( 'bar' ) ] ,
@@ -203,15 +203,15 @@ ruleTester.run('no-missing-placeholders', rule, {
203
203
code : `
204
204
const MESSAGE = 'foo {{bar}}';
205
205
module.exports = context => {
206
- context.report(node, MESSAGE, { baz: 'qux' });
206
+ context.report(node, MESSAGE, { baz: 'qux' }); return {};
207
207
};
208
208
` ,
209
209
errors : [ error ( 'bar' , 'Identifier' ) ] ,
210
210
} ,
211
211
{
212
212
code : `
213
213
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 {};
215
215
};
216
216
` ,
217
217
errors : [ error ( 'bar' ) ] ,
0 commit comments