add test cases

This commit is contained in:
BigAru
2019-03-24 16:52:25 +01:00
parent 3ce216849a
commit cf25c12d81
2 changed files with 24 additions and 0 deletions
@@ -0,0 +1,12 @@
/// <reference path='fourslash.ts' />
//// console.log(`/*x*/f/*y*/oobar is ${ 32 } years old`)
goTo.select("x", "y");
edit.applyRefactor({
refactorName: "Convert string concatenation or template literal",
actionName: "Convert to string concatenation",
actionDescription: "Convert to string concatenation",
newContent:
`console.log("foobar is " + 32 + " years old")`,
});
@@ -0,0 +1,12 @@
/// <reference path='fourslash.ts' />
//// console.log("/*x*/f/*y*/oobar is " + 32 + " years old")
goTo.select("x", "y");
edit.applyRefactor({
refactorName: "Convert string concatenation or template literal",
actionName: "Convert to template literal",
actionDescription: "Convert to template literal",
newContent:
`console.log(\`foobar is \${32} years old\`)`,
});