File tree Expand file tree Collapse file tree 1 file changed +27
-27
lines changed Expand file tree Collapse file tree 1 file changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -27,39 +27,39 @@ const MESSAGE_OWN_LINE = [{message: 'Closing tag of a multiline JSX expression m
27
27
const ruleTester = new RuleTester ( { parserOptions} ) ;
28
28
ruleTester . run ( 'jsx-closing-tag-location' , rule , {
29
29
valid : [ {
30
- code : [
31
- ' <App>' ,
32
- ' foo' ,
33
- ' </App>'
34
- ] . join ( '\n' )
30
+ code : `
31
+ <App>
32
+ foo
33
+ </App>
34
+ `
35
35
} , {
36
- code : [
37
- ' <App>foo</App>'
38
- ] . join ( '\n' )
36
+ code : `
37
+ <App>foo</App>
38
+ `
39
39
} ] ,
40
40
41
41
invalid : [ {
42
- code : [
43
- ' <App>' ,
44
- ' foo' ,
45
- ' </App>'
46
- ] . join ( '\n' ) ,
47
- output : [
48
- ' <App>' ,
49
- ' foo' ,
50
- ' </App>'
51
- ] . join ( '\n' ) ,
42
+ code : `
43
+ <App>
44
+ foo
45
+ </App>
46
+ ` ,
47
+ output : `
48
+ <App>
49
+ foo
50
+ </App>
51
+ ` ,
52
52
errors : MESSAGE_MATCH_INDENTATION
53
53
} , {
54
- code : [
55
- ' <App>' ,
56
- ' foo</App>'
57
- ] . join ( '\n' ) ,
58
- output : [
59
- ' <App>' ,
60
- ' foo' ,
61
- ' </App>'
62
- ] . join ( '\n' ) ,
54
+ code : `
55
+ <App>
56
+ foo</App>
57
+ ` ,
58
+ output : `
59
+ <App>
60
+ foo
61
+ </App>
62
+ ` ,
63
63
errors : MESSAGE_OWN_LINE
64
64
} ]
65
65
} ) ;
You can’t perform that action at this time.
0 commit comments