TypeScript/tests/cases/fourslash/extract-unterminated2.ts

18 lines
379 B
TypeScript
Raw Normal View History

/// <reference path="fourslash.ts" />
// Unterminated string literal:
//// /*1*/const foo = "foo/*2*/
goTo.select("1", "2");
edit.applyRefactor({
refactorName: "Extract Symbol",
actionName: "function_scope_0",
actionDescription: "Extract to function in global scope",
newContent: `const foo = /*RENAME*/newFunction()
function newFunction() {
return "foo";
}
`
});