Skip to content

Commit ee6c6f4

Browse files
committed
test: fix case to cover fixSpaceAroundKeyword
1 parent 3de2032 commit ee6c6f4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/prefer-string-raw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ test.snapshot({
7575
],
7676
invalid: [
7777
'a = `a\\\\b`',
78-
'function a() {return `a\\\\b${foo}cd`}',
78+
'function a() {return`a\\\\b${foo}cd`}',
7979
'a = {[`a\\\\b${foo}cd${foo.bar}e\\\\f`]: b}',
8080
'a = `a${foo}${foo.bar}b\\\\c`',
8181
'a = `a\\\\b${"c\\\\d"}e`',

test/snapshots/prefer-string-raw.js.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,12 @@ Generated by [AVA](https://avajs.dev).
151151
| ^^^^^^ \`String.raw\` should be used to avoid escaping \`\\\`.␊
152152
`
153153

154-
## invalid(2): function a() {return `a\\b${foo}cd`}
154+
## invalid(2): function a() {return`a\\b${foo}cd`}
155155

156156
> Input
157157
158158
`␊
159-
1 | function a() {return \`a\\\\b${foo}cd\`}␊
159+
1 | function a() {return\`a\\\\b${foo}cd\`}␊
160160
`
161161

162162
> Output
@@ -168,8 +168,8 @@ Generated by [AVA](https://avajs.dev).
168168
> Error 1/1
169169
170170
`␊
171-
> 1 | function a() {return \`a\\\\b${foo}cd\`}␊
172-
| ^^^^^^^^^^^^^^ \`String.raw\` should be used to avoid escaping \`\\\`.␊
171+
> 1 | function a() {return\`a\\\\b${foo}cd\`}␊
172+
| ^^^^^^^^^^^^^^ \`String.raw\` should be used to avoid escaping \`\\\`.␊
173173
`
174174

175175
## invalid(3): a = {[`a\\b${foo}cd${foo.bar}e\\f`]: b}
-1 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)