Skip to content

Commit bf48564

Browse files
author
Arthur Ozga
committed
FIx typo in method stub.
1 parent 5d6a714 commit bf48564

13 files changed

+15
-15
lines changed

src/services/codefixes/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace ts.codefix {
5050
}
5151

5252
function getMethodBodyStub(newLineChar: string) {
53-
return `{${newLineChar}throw new Error('Method not Implemented');${newLineChar}}${newLineChar}`;
53+
return `{${newLineChar}throw new Error('Method not implemented.');${newLineChar}}${newLineChar}`;
5454
}
5555

5656
function getVisibilityPrefix(flags: ModifierFlags): string {

tests/cases/fourslash/codeFixClassExtendsAbstractMethod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
//// |]}
99

1010
verify.rangeAfterCodeFix(`f(){
11-
throw new Error('Method not Implemented');
11+
throw new Error('Method not implemented.');
1212
}
1313
`);

tests/cases/fourslash/codeFixClassExtendsAbstractMethodTypeParamsInstantiateNumber.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
//// |]}
99

1010
verify.rangeAfterCodeFix(`f(x: number): number{
11-
throw new Error('Method not Implemented');
11+
throw new Error('Method not implemented.');
1212
}
1313
`);

tests/cases/fourslash/codeFixClassExtendsAbstractMethodTypeParamsInstantiateU.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
//// |]}
99

1010
verify.rangeAfterCodeFix(`f(x: U): U{
11-
throw new Error('Method not Implemented');
11+
throw new Error('Method not implemented.');
1212
}
1313
`);

tests/cases/fourslash/codeFixUnImplementedClassMissingFunctionVoidInferred.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88

99
verify.rangeAfterCodeFix(`
1010
f(): void{
11-
throw new Error('Method not Implemented');
11+
throw new Error('Method not implemented.');
1212
}
1313
`);

tests/cases/fourslash/codeFixUnImplementedClassMissingMethodViaHeritage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
//// }
1414

1515
verify.rangeAfterCodeFix(`f1(): void{
16-
throw new Error('Method not Implemented');
16+
throw new Error('Method not implemented.');
1717
}
1818
`);

tests/cases/fourslash/codeFixUnImplementedInterface36.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
//// |]}
1616

1717
verify.rangeAfterCodeFix(`f1<T extends number>(){
18-
throw new Error('Method not Implemented');
18+
throw new Error('Method not implemented.');
1919
}
2020
`);

tests/cases/fourslash/codeFixUnImplementedInterface39.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
//// |]}
1414

1515
verify.rangeAfterCodeFix(`f1(): string{
16-
throw new Error('Method not Implemented');
16+
throw new Error('Method not implemented.');
1717
}
1818
`);

tests/cases/fourslash/codeFixUnImplementedInterfaceMissingMethod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
//// |]}
99

1010
verify.rangeAfterCodeFix(`f1(){
11-
throw new Error('Method not Implemented');
11+
throw new Error('Method not implemented.');
1212
}
1313
`);

tests/cases/fourslash/codeFixUnImplementedInterfaceMissingMethodWithParams.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99

1010
verify.rangeAfterCodeFix(`
1111
f(x: number,y: string){
12-
throw new Error('Method not Implemented');
12+
throw new Error('Method not implemented.');
1313
}
1414
`);

0 commit comments

Comments
 (0)