File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ test.snapshot({
71
71
] ,
72
72
invalid : [
73
73
'a = `a\\\\b`' ,
74
- 'a = `a\\\\b${foo}cd`' ,
75
- 'a = `a\\\\b${foo}cd${foo.bar}e\\\\f`' ,
74
+ 'function a() {return `a\\\\b${foo}cd`} ' ,
75
+ 'a = {[ `a\\\\b${foo}cd${foo.bar}e\\\\f`]: b} ' ,
76
76
'a = `a${foo}${foo.bar}b\\\\c`' ,
77
77
'a = `a\\\\b${"c\\\\d"}e`' ,
78
78
] ,
Original file line number Diff line number Diff line change @@ -109,46 +109,46 @@ Generated by [AVA](https://avajs.dev).
109
109
| ^^^^^^ \`String.raw\` should be used to avoid escaping \`\\\`.␊
110
110
`
111
111
112
- ## invalid(2): a = ` a\\b${foo}cd `
112
+ ## invalid(2): function a() {return ` a\\b${foo}cd ` }
113
113
114
114
> Input
115
115
116
116
`␊
117
- 1 | a = \`a\\\\b${foo}cd\`␊
117
+ 1 | function a() {return \`a\\\\b${foo}cd\`} ␊
118
118
`
119
119
120
120
> Output
121
121
122
122
`␊
123
- 1 | a = String.raw\`a\\b${foo}cd\`␊
123
+ 1 | function a() {return String.raw\`a\\b${foo}cd\`} ␊
124
124
`
125
125
126
126
> Error 1/1
127
127
128
128
`␊
129
- > 1 | a = \`a\\\\b${foo}cd\`␊
130
- | ^^^^^^^^^^^^^^ \`String.raw\` should be used to avoid escaping \`\\\`.␊
129
+ > 1 | function a() {return \`a\\\\b${foo}cd\`} ␊
130
+ | ^^^^^^^^^^^^^^ \`String.raw\` should be used to avoid escaping \`\\\`.␊
131
131
`
132
132
133
- ## invalid(3): a = ` a\\b${foo}cd${foo.bar}e\\f `
133
+ ## invalid(3): a = { [ ` a\\b${foo}cd${foo.bar}e\\f ` ] : b}
134
134
135
135
> Input
136
136
137
137
`␊
138
- 1 | a = \`a\\\\b${foo}cd${foo.bar}e\\\\f\`␊
138
+ 1 | a = {[ \`a\\\\b${foo}cd${foo.bar}e\\\\f\`]: b} ␊
139
139
`
140
140
141
141
> Output
142
142
143
143
`␊
144
- 1 | a = String.raw\`a\\b${foo}cd${foo.bar}e\\f\`␊
144
+ 1 | a = {[ String.raw\`a\\b${foo}cd${foo.bar}e\\f\`]: b} ␊
145
145
`
146
146
147
147
> Error 1/1
148
148
149
149
`␊
150
- > 1 | a = \`a\\\\b${foo}cd${foo.bar}e\\\\f\`␊
151
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \`String.raw\` should be used to avoid escaping \`\\\`.␊
150
+ > 1 | a = {[ \`a\\\\b${foo}cd${foo.bar}e\\\\f\`]: b} ␊
151
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \`String.raw\` should be used to avoid escaping \`\\\`.␊
152
152
`
153
153
154
154
## invalid(4): a = ` a${foo}${foo.bar}b\\c `
You can’t perform that action at this time.
0 commit comments