Fix fourslash tests

This commit is contained in:
Anders Hejlsberg 2017-07-16 17:12:32 -10:00
parent 5093f93677
commit ecc36653cd
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
goTo.marker();
verify.quickInfoIs(
"(property) map: (<U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]) | (<U>(callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[])",
"(property) map: (<U>(this: readonly, callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]) | (<U>(this: readonly, callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[])",
"Calls a defined callback function on each element of an array, and returns an array that contains the results.");
verify.completionListContains('map', "(property) map: (<U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]) | (<U>(callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[])");
verify.completionListContains('map', "(property) map: (<U>(this: readonly, callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) => U[]) | (<U>(this: readonly, callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) => U[])");

View File

@ -7,5 +7,5 @@
goTo.marker();
verify.completionListContains('length', "(property) Array<number>.length: number", /*docComments*/ undefined, /*kind*/ "property");
verify.completionListContains('toString', "(method) Array<number>.toString(): string", /*docComments*/ undefined, /*kind*/ "method");
verify.completionListContains('toString', "(method) Array<number>.toString(this: readonly): string", /*docComments*/ undefined, /*kind*/ "method");