Skip to content

Commit ca44ee8

Browse files
committed
Update fourslash tests to have semicolons
1 parent e6fde9e commit ca44ee8

32 files changed

+68
-68
lines changed

tests/cases/fourslash/extract-method-in-anonymous-function-declaration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference path='fourslash.ts' />
22

33
////export default function() {
4-
//// /*start*/0/*end*/
4+
//// /*start*/0/*end*/;
55
////}
66

77
goTo.select('start', 'end')

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
});

tests/cases/fourslash/refactorExtractType11.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference path='fourslash.ts' />
22

33
//// function foo(a: number, b?: number, ...c: number[]): boolean {
4-
//// return false as /*a*/boolean/*b*/
4+
//// return false as /*a*/boolean/*b*/;
55
//// }
66

77
goTo.select("a", "b");
@@ -12,6 +12,6 @@ edit.applyRefactor({
1212
newContent: `function foo(a: number, b?: number, ...c: number[]): boolean {
1313
type /*RENAME*/NewType = boolean;
1414
15-
return false as NewType
15+
return false as NewType;
1616
}`,
1717
});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference path='fourslash.ts' />
22

3-
//// type A<T = /*a*/boolean/*b*/> = string | number | T
3+
//// type A<T = /*a*/boolean/*b*/> = string | number | T;
44

55
goTo.select("a", "b");
66
edit.applyRefactor({
@@ -9,5 +9,5 @@ edit.applyRefactor({
99
actionDescription: "Extract to type alias",
1010
newContent: `type /*RENAME*/NewType = boolean;
1111
12-
type A<T = NewType> = string | number | T`,
12+
type A<T = NewType> = string | number | T;`,
1313
});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference path='fourslash.ts' />
22

3-
//// type A<T = boolean> = /*a*/string/*b*/ | number | T
3+
//// type A<T = boolean> = /*a*/string/*b*/ | number | T;
44

55
goTo.select("a", "b");
66
edit.applyRefactor({
@@ -9,5 +9,5 @@ edit.applyRefactor({
99
actionDescription: "Extract to type alias",
1010
newContent: `type /*RENAME*/NewType = string;
1111
12-
type A<T = boolean> = NewType | number | T`,
12+
type A<T = boolean> = NewType | number | T;`,
1313
});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference path='fourslash.ts' />
22

3-
//// type A<T = boolean> = string | number | /*a*/T/*b*/
3+
//// type A<T = boolean> = string | number | /*a*/T/*b*/;
44

55
goTo.select("a", "b");
66
edit.applyRefactor({
@@ -9,5 +9,5 @@ edit.applyRefactor({
99
actionDescription: "Extract to type alias",
1010
newContent: `type /*RENAME*/NewType<T> = T;
1111
12-
type A<T = boolean> = string | number | NewType<T>`,
12+
type A<T = boolean> = string | number | NewType<T>;`,
1313
});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference path='fourslash.ts' />
22

3-
//// type A<B, C, D = B> = /*a*/Partial<C | string>/*b*/ & D | C
3+
//// type A<B, C, D = B> = /*a*/Partial<C | string>/*b*/ & D | C;
44

55
goTo.select("a", "b");
66
edit.applyRefactor({
@@ -9,6 +9,6 @@ edit.applyRefactor({
99
actionDescription: "Extract to type alias",
1010
newContent: `type /*RENAME*/NewType<C> = Partial<C | string>;
1111
12-
type A<B, C, D = B> = NewType<C> & D | C`,
12+
type A<B, C, D = B> = NewType<C> & D | C;`,
1313
});
1414

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference path='fourslash.ts' />
22

3-
//// type A<B, C, D = B> = /*a*/Partial<C | string | D>/*b*/ & D | C
3+
//// type A<B, C, D = B> = /*a*/Partial<C | string | D>/*b*/ & D | C;
44

55
goTo.select("a", "b");
66
edit.applyRefactor({
@@ -9,6 +9,6 @@ edit.applyRefactor({
99
actionDescription: "Extract to type alias",
1010
newContent: `type /*RENAME*/NewType<C, D> = Partial<C | string | D>;
1111
12-
type A<B, C, D = B> = NewType<C, D> & D | C`,
12+
type A<B, C, D = B> = NewType<C, D> & D | C;`,
1313
});
1414

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference path='fourslash.ts' />
22

3-
//// type A<T, U> = () => <T>(v: /*a*/T/*b*/) => (v: T) => <T>(v: T) => U
3+
//// type A<T, U> = () => <T>(v: /*a*/T/*b*/) => (v: T) => <T>(v: T) => U;
44

55
goTo.select("a", "b");
66
edit.applyRefactor({
@@ -9,5 +9,5 @@ edit.applyRefactor({
99
actionDescription: "Extract to type alias",
1010
newContent: `type /*RENAME*/NewType<T> = T;
1111
12-
type A<T, U> = () => <T>(v: NewType<T>) => (v: T) => <T>(v: T) => U`,
12+
type A<T, U> = () => <T>(v: NewType<T>) => (v: T) => <T>(v: T) => U;`,
1313
});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference path='fourslash.ts' />
22

3-
//// type A<T, U> = () => <T>(v: T) => (v: /*a*/T/*b*/) => <T>(v: T) => U
3+
//// type A<T, U> = () => <T>(v: T) => (v: /*a*/T/*b*/) => <T>(v: T) => U;
44

55
goTo.select("a", "b");
66
edit.applyRefactor({
@@ -9,5 +9,5 @@ edit.applyRefactor({
99
actionDescription: "Extract to type alias",
1010
newContent: `type /*RENAME*/NewType<T> = T;
1111
12-
type A<T, U> = () => <T>(v: T) => (v: NewType<T>) => <T>(v: T) => U`,
12+
type A<T, U> = () => <T>(v: T) => (v: NewType<T>) => <T>(v: T) => U;`,
1313
});

0 commit comments

Comments
 (0)