Skip to content

Commit cf25c12

Browse files
committed
add test cases
1 parent 3ce2168 commit cf25c12

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
//// console.log(`/*x*/f/*y*/oobar is ${ 32 } years old`)
4+
5+
goTo.select("x", "y");
6+
edit.applyRefactor({
7+
refactorName: "Convert string concatenation or template literal",
8+
actionName: "Convert to string concatenation",
9+
actionDescription: "Convert to string concatenation",
10+
newContent:
11+
`console.log("foobar is " + 32 + " years old")`,
12+
});
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
//// console.log("/*x*/f/*y*/oobar is " + 32 + " years old")
4+
5+
goTo.select("x", "y");
6+
edit.applyRefactor({
7+
refactorName: "Convert string concatenation or template literal",
8+
actionName: "Convert to template literal",
9+
actionDescription: "Convert to template literal",
10+
newContent:
11+
`console.log(\`foobar is \${32} years old\`)`,
12+
});

0 commit comments

Comments
 (0)