* Add/convert to failing tests. * Stop offering to convert single string literals to template expressions. * Ensure we're actually testing for single quotes.
13 lines
400 B
TypeScript
13 lines
400 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
//// const foo = '/*x*/f/*y*/oobar is ' + (42 + 6) + ' years old'
|
|
|
|
goTo.select("x", "y");
|
|
edit.applyRefactor({
|
|
refactorName: "Convert to template string",
|
|
actionName: "Convert to template string",
|
|
actionDescription: ts.Diagnostics.Convert_to_template_string.message,
|
|
newContent:
|
|
`const foo = \`foobar is \${42 + 6} years old\``,
|
|
});
|