Skip to content

Commit 7d3ad0c

Browse files
Ensure we're actually testing for single quotes.
1 parent 11e827b commit 7d3ad0c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
//// const foo = '/*x*/f/*y*/oobar is ' + (42 + 6) + ' years old'
4+
5+
goTo.select("x", "y");
6+
edit.applyRefactor({
7+
refactorName: "Convert to template string",
8+
actionName: "Convert to template string",
9+
actionDescription: ts.Diagnostics.Convert_to_template_string.message,
10+
newContent:
11+
`const foo = \`foobar is \${42 + 6} years old\``,
12+
});

0 commit comments

Comments
 (0)