@@ -126,48 +126,6 @@ ruleTester.run('jsx-no-literals', rule, {
126
126
` ,
127
127
parser : 'babel-eslint' ,
128
128
options : [ { noStrings : true } ]
129
- } , {
130
- code : '<Foo bar={true} />' ,
131
- parser : 'babel-eslint' ,
132
- options : [ { noStrings : true } ]
133
- } , {
134
- code : '<Foo bar={false} />' ,
135
- parser : 'babel-eslint' ,
136
- options : [ { noStrings : true } ]
137
- } , {
138
- code : '<Foo bar={100} />' ,
139
- parser : 'babel-eslint' ,
140
- options : [ { noStrings : true } ]
141
- } , {
142
- code : '<Foo bar={null} />' ,
143
- parser : 'babel-eslint' ,
144
- options : [ { noStrings : true } ]
145
- } , {
146
- code : '<Foo bar={{}} />' ,
147
- parser : 'babel-eslint' ,
148
- options : [ { noStrings : true } ]
149
- } , {
150
- code : [
151
- 'class Comp1 extends Component {' ,
152
- ' asdf() {}' ,
153
- ' render() {' ,
154
- ' return <Foo bar={this.asdf} />;' ,
155
- ' }' ,
156
- '}'
157
- ] . join ( '\n' ) ,
158
- parser : 'babel-eslint' ,
159
- options : [ { noStrings : true } ]
160
- } , {
161
- code : [
162
- 'class Comp1 extends Component {' ,
163
- ' render() {' ,
164
- ' let foo = `bar`;' ,
165
- ' return <div />;' ,
166
- ' }' ,
167
- '}'
168
- ] . join ( '\n' ) ,
169
- parser : 'babel-eslint' ,
170
- options : [ { noStrings : true } ]
171
129
} , {
172
130
code : `
173
131
<Foo bar="test">
@@ -351,20 +309,6 @@ ruleTester.run('jsx-no-literals', rule, {
351
309
' {`Test`}' ,
352
310
'</Foo>'
353
311
] . join ( '\n' ) ,
354
- parser : 'babel-eslint' ,
355
- options : [ { noStrings : true } ] ,
356
- errors : [ { message : 'Strings not allowed in JSX files' } ]
357
- } , {
358
- code : [
359
- '<Foo>' ,
360
- ' {`Test`}' ,
361
- '</Foo>'
362
- ] . join ( '\n' ) ,
363
- options : [ { noStrings : true } ] ,
364
- errors : [ { message : 'Strings not allowed in JSX files' } ]
365
- } , {
366
- code : '<Foo bar={`Test`} />' ,
367
- parser : 'babel-eslint' ,
368
312
options : [ { noStrings : true } ] ,
369
313
errors : [ { message : 'Strings not allowed in JSX files' } ]
370
314
} , {
0 commit comments