Update fourslash tests that shouldn’t insert semicolons
This commit is contained in:
parent
ca44ee8f97
commit
7815778fb0
|
@ -14,25 +14,25 @@
|
|||
goTo.marker("0");
|
||||
const preferences: FourSlashInterface.UserPreferences = { includeCompletionsForModuleExports: true };
|
||||
verify.completions(
|
||||
{
|
||||
{
|
||||
marker: "0",
|
||||
exact: [
|
||||
completion.globalThisEntry,
|
||||
completion.undefinedVarEntry,
|
||||
...completion.statementKeywordsWithTypes
|
||||
],
|
||||
preferences
|
||||
completion.globalThisEntry,
|
||||
completion.undefinedVarEntry,
|
||||
...completion.statementKeywordsWithTypes
|
||||
],
|
||||
preferences
|
||||
},
|
||||
{
|
||||
marker: "1",
|
||||
includes: {
|
||||
name: "fooBar",
|
||||
source: "/src/foo-bar",
|
||||
sourceDisplay: "./foo-bar",
|
||||
text: "(property) default: 0",
|
||||
kind: "property",
|
||||
hasAction: true,
|
||||
sortText: completion.SortText.AutoImportSuggestions
|
||||
name: "fooBar",
|
||||
source: "/src/foo-bar",
|
||||
sourceDisplay: "./foo-bar",
|
||||
text: "(property) default: 0",
|
||||
kind: "property",
|
||||
hasAction: true,
|
||||
sortText: completion.SortText.AutoImportSuggestions
|
||||
},
|
||||
preferences,
|
||||
},
|
||||
|
@ -41,7 +41,7 @@ verify.applyCodeActionFromCompletion("1", {
|
|||
name: "fooBar",
|
||||
source: "/src/foo-bar",
|
||||
description: `Import default 'fooBar' from module "./foo-bar"`,
|
||||
newFileContent: `import fooBar from "./foo-bar";
|
||||
newFileContent: `import fooBar from "./foo-bar"
|
||||
|
||||
def
|
||||
fooB`,
|
||||
|
|
|
@ -38,7 +38,7 @@ verify.applyCodeActionFromCompletion("0", {
|
|||
name: "fooBar",
|
||||
source: "/src/foo-bar",
|
||||
description: `Import 'fooBar' from module "./foo-bar"`,
|
||||
newFileContent: `import fooBar = require("./foo-bar");
|
||||
newFileContent: `import fooBar = require("./foo-bar")
|
||||
|
||||
exp
|
||||
fooB`,
|
||||
|
|
|
@ -11,5 +11,5 @@ edit.applyRefactor({
|
|||
refactorName: "Extract Symbol",
|
||||
actionName: "constant_scope_0",
|
||||
actionDescription: "Extract to constant in enclosing scope",
|
||||
newContent: "const /*RENAME*/newLocal = <div></div>",
|
||||
newContent: "const /*RENAME*/newLocal = <div></div>;",
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue