@@ -126,48 +126,6 @@ ruleTester.run('jsx-no-literals', rule, {
126126 ` ,
127127 parser : 'babel-eslint' ,
128128 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 } ]
171129 } , {
172130 code : `
173131 <Foo bar="test">
@@ -351,20 +309,6 @@ ruleTester.run('jsx-no-literals', rule, {
351309 ' {`Test`}' ,
352310 '</Foo>'
353311 ] . 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' ,
368312 options : [ { noStrings : true } ] ,
369313 errors : [ { message : 'Strings not allowed in JSX files' } ]
370314 } , {
0 commit comments