2018-12-07 05:58:00 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2019-03-22 16:40:15 +01:00
|
|
|
//// const foo = /*x*/4/*y*/2 - 6 * 4 + 23 / 12 +" years old"
|
2018-12-07 05:58:00 +01:00
|
|
|
|
|
|
|
goTo.select("x", "y");
|
|
|
|
edit.applyRefactor({
|
2020-01-03 01:32:06 +01:00
|
|
|
refactorName: "Convert to template string",
|
|
|
|
actionName: "Convert to template string",
|
|
|
|
actionDescription: ts.Diagnostics.Convert_to_template_string.message,
|
2018-12-07 05:58:00 +01:00
|
|
|
newContent:
|
2019-03-22 16:40:15 +01:00
|
|
|
`const foo = \`\${42 - 6 * 4 + 23 / 12} years old\``,
|
2018-12-07 05:58:00 +01:00
|
|
|
});
|