Skip to content

Commit 7d82e15

Browse files
author
Arthur Ozga
committed
Add tests
1 parent 8a5bebe commit 7d82e15

File tree

4 files changed

+22
-26
lines changed

4 files changed

+22
-26
lines changed

tests/cases/fourslash/codeFixClassExtendAbstractGetter.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/cases/fourslash/codeFixClassExtendAbstractGetterSetter.ts

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22

33
//// abstract class A {
44
//// private _a: string;
5-
////
6-
//// abstract get a(): string;
7-
//// abstract set a(newName: string);
5+
////
6+
//// abstract get a(): number | string;
7+
//// abstract get b(): this;
8+
//// abstract get c(): A;
9+
////
10+
//// abstract set d(arg: number | string);
11+
//// abstract set e(arg: this);
12+
//// abstract set f(arg: A);
13+
////
14+
//// abstract get g(): string;
15+
//// abstract set g(newName: string);
816
//// }
917
////
1018
//// // Don't need to add anything in this case.
@@ -13,5 +21,11 @@
1321
//// class C extends A {[| |]}
1422

1523
verify.rangeAfterCodeFix(`
16-
a: string;
24+
a: string | number;
25+
b: this;
26+
c: A;
27+
d: string | number;
28+
e: this;
29+
f: A;
30+
g: string;
1731
`);

tests/cases/fourslash/codeFixClassExtendAbstractProperty.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
//// abstract class A {
44
//// abstract x: number;
5+
//// abstract y: this;
6+
//// abstract z: A;
57
//// abstract foo(): number;
68
//// }
79
////
@@ -10,6 +12,8 @@
1012

1113
verify.rangeAfterCodeFix(`
1214
x: number;
15+
y: this;
16+
z: A;
1317
foo(): number {
1418
throw new Error('Method not implemented.');
1519
}

tests/cases/fourslash/codeFixClassExtendAbstractSetter.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)