Add/convert to failing tests.

This commit is contained in:
Daniel Rosenwasser
2020-02-13 11:51:13 -08:00
parent 8ef498f69e
commit 206d39e9b5
4 changed files with 9 additions and 21 deletions
@@ -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);
@@ -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);