Skip to content

Commit 628a520

Browse files
committed
Update tests with changed docstrings
1 parent ed3d7f7 commit 628a520

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

tests/baselines/reference/1.0lib-noErrors.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,14 +297,14 @@ interface String {
297297
concat(...strings: string[]): string;
298298

299299
/**
300-
* Returns the position of the first occurrence of a substring.
300+
* Returns the position of the first occurrence of a substring, or -1 if it is not present.
301301
* @param searchString The substring to search for in the string
302302
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
303303
*/
304304
indexOf(searchString: string, position?: number): number;
305305

306306
/**
307-
* Returns the last occurrence of a substring in the string.
307+
* Returns the last occurrence of a substring in the string, or -1 if it is not present.
308308
* @param searchString The substring to search for.
309309
* @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
310310
*/
@@ -1143,7 +1143,8 @@ declare var Array: {
11431143
<T>(...items: T[]): T[];
11441144
isArray(arg: any): boolean;
11451145
prototype: Array<any>;
1146-
}
1146+
}
1147+
11471148

11481149
//// [1.0lib-noErrors.js]
11491150
/* *****************************************************************************

tests/baselines/reference/1.0lib-noErrors.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ interface String {
440440
>strings : Symbol(strings, Decl(1.0lib-noErrors.ts, 293, 11))
441441

442442
/**
443-
* Returns the position of the first occurrence of a substring.
443+
* Returns the position of the first occurrence of a substring, or -1 if it is not present.
444444
* @param searchString The substring to search for in the string
445445
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
446446
*/
@@ -450,7 +450,7 @@ interface String {
450450
>position : Symbol(position, Decl(1.0lib-noErrors.ts, 300, 33))
451451

452452
/**
453-
* Returns the last occurrence of a substring in the string.
453+
* Returns the last occurrence of a substring in the string, or -1 if it is not present.
454454
* @param searchString The substring to search for.
455455
* @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
456456
*/

tests/baselines/reference/1.0lib-noErrors.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ interface String {
491491
> : ^^^^^^^^
492492

493493
/**
494-
* Returns the position of the first occurrence of a substring.
494+
* Returns the position of the first occurrence of a substring, or -1 if it is not present.
495495
* @param searchString The substring to search for in the string
496496
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
497497
*/
@@ -504,7 +504,7 @@ interface String {
504504
> : ^^^^^^
505505

506506
/**
507-
* Returns the last occurrence of a substring in the string.
507+
* Returns the last occurrence of a substring in the string, or -1 if it is not present.
508508
* @param searchString The substring to search for.
509509
* @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
510510
*/

tests/baselines/reference/completionsStringMethods.baseline

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@
443443
],
444444
"documentation": [
445445
{
446-
"text": "Returns the position of the first occurrence of a substring.",
446+
"text": "Returns the position of the first occurrence of a substring, or -1 if it is not present.",
447447
"kind": "text"
448448
}
449449
],
@@ -585,7 +585,7 @@
585585
],
586586
"documentation": [
587587
{
588-
"text": "Returns the last occurrence of a substring in the string.",
588+
"text": "Returns the last occurrence of a substring in the string, or -1 if it is not present.",
589589
"kind": "text"
590590
}
591591
],

tests/cases/conformance/decorators/1.0lib-noErrors.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,14 @@ interface String {
295295
concat(...strings: string[]): string;
296296

297297
/**
298-
* Returns the position of the first occurrence of a substring.
298+
* Returns the position of the first occurrence of a substring, or -1 if it is not present.
299299
* @param searchString The substring to search for in the string
300300
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
301301
*/
302302
indexOf(searchString: string, position?: number): number;
303303

304304
/**
305-
* Returns the last occurrence of a substring in the string.
305+
* Returns the last occurrence of a substring in the string, or -1 if it is not present.
306306
* @param searchString The substring to search for.
307307
* @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
308308
*/
@@ -1141,4 +1141,4 @@ declare var Array: {
11411141
<T>(...items: T[]): T[];
11421142
isArray(arg: any): boolean;
11431143
prototype: Array<any>;
1144-
}
1144+
}

0 commit comments

Comments
 (0)