Skip to content

Commit 7815778

Browse files
committed
Update fourslash tests that shouldn’t insert semicolons
1 parent ca44ee8 commit 7815778

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

tests/cases/fourslash/completionsImport_default_anonymous.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@
1414
goTo.marker("0");
1515
const preferences: FourSlashInterface.UserPreferences = { includeCompletionsForModuleExports: true };
1616
verify.completions(
17-
{
17+
{
1818
marker: "0",
1919
exact: [
20-
completion.globalThisEntry,
21-
completion.undefinedVarEntry,
22-
...completion.statementKeywordsWithTypes
23-
],
24-
preferences
20+
completion.globalThisEntry,
21+
completion.undefinedVarEntry,
22+
...completion.statementKeywordsWithTypes
23+
],
24+
preferences
2525
},
2626
{
2727
marker: "1",
2828
includes: {
29-
name: "fooBar",
30-
source: "/src/foo-bar",
31-
sourceDisplay: "./foo-bar",
32-
text: "(property) default: 0",
33-
kind: "property",
34-
hasAction: true,
35-
sortText: completion.SortText.AutoImportSuggestions
29+
name: "fooBar",
30+
source: "/src/foo-bar",
31+
sourceDisplay: "./foo-bar",
32+
text: "(property) default: 0",
33+
kind: "property",
34+
hasAction: true,
35+
sortText: completion.SortText.AutoImportSuggestions
3636
},
3737
preferences,
3838
},
@@ -41,7 +41,7 @@ verify.applyCodeActionFromCompletion("1", {
4141
name: "fooBar",
4242
source: "/src/foo-bar",
4343
description: `Import default 'fooBar' from module "./foo-bar"`,
44-
newFileContent: `import fooBar from "./foo-bar";
44+
newFileContent: `import fooBar from "./foo-bar"
4545
4646
def
4747
fooB`,

tests/cases/fourslash/completionsImport_exportEquals_anonymous.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ verify.applyCodeActionFromCompletion("0", {
3838
name: "fooBar",
3939
source: "/src/foo-bar",
4040
description: `Import 'fooBar' from module "./foo-bar"`,
41-
newFileContent: `import fooBar = require("./foo-bar");
41+
newFileContent: `import fooBar = require("./foo-bar")
4242
4343
exp
4444
fooB`,

tests/cases/fourslash/extract-method_jsxIntrinsicTagSymbol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ edit.applyRefactor({
1111
refactorName: "Extract Symbol",
1212
actionName: "constant_scope_0",
1313
actionDescription: "Extract to constant in enclosing scope",
14-
newContent: "const /*RENAME*/newLocal = <div></div>",
14+
newContent: "const /*RENAME*/newLocal = <div></div>;",
1515
});

0 commit comments

Comments
 (0)