Skip to content

Commit b954347

Browse files
committed
Add test
1 parent 11eecba commit b954347

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

tests/format/js/quotes/strings.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@
6060
'
6161
'escaped carriage return \
6262
'
63-
'escaped \u2028 \
'
64-
'escaped \u2029 \
'
63+
'escaped \u2028 \
64+
'
65+
'escaped \u2029 \
66+
'
6567

6668
// One of each.
6769
"\"'"
@@ -98,3 +100,8 @@
98100
// Somewhat more real-word example 2.
99101
"var backslash = \"\\\", doubleQuote = '\"';"
100102
'var backslash = "\\", doubleQuote = \'"\';'
103+
104+
// Switch quote
105+
console.log(
106+
"A descriptor\\'s .kind must be \"method\"')",
107+
);

0 commit comments

Comments
 (0)