mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Add/convert to failing tests.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////import { x } from /*x*/"foo"/*y*/;
|
||||
|
||||
goTo.select("x", "y");
|
||||
verify.not.refactorAvailable(ts.Diagnostics.Convert_to_template_string.message);
|
||||
@@ -3,10 +3,4 @@
|
||||
//// const foo = "/*x*/w/*y*/ith back`tick"
|
||||
|
||||
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 = `with back\\`tick`",
|
||||
});
|
||||
verify.not.refactorAvailable(ts.Diagnostics.Convert_to_template_string.message);
|
||||
|
||||
@@ -3,10 +3,4 @@
|
||||
//// const foo = "/*x*/f/*y*/oobar rocks"
|
||||
|
||||
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 rocks\``,
|
||||
});
|
||||
verify.not.refactorAvailable(ts.Diagnostics.Convert_to_template_string.message);
|
||||
+1
-7
@@ -3,10 +3,4 @@
|
||||
//// const foo = '/*x*/f/*y*/oobar rocks'
|
||||
|
||||
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 rocks\``,
|
||||
});
|
||||
verify.not.refactorAvailable(ts.Diagnostics.Convert_to_template_string.message);
|
||||
|
||||
Reference in New Issue
Block a user