Skip to content

Commit 3cbc3db

Browse files
committed
Fixing fourslash tests
1 parent a05ebc4 commit 3cbc3db

6 files changed

+9
-9
lines changed

tests/cases/fourslash/completionEntryForUnionProperty.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
////x./**/
1616

1717
goTo.marker();
18-
verify.memberListContains("commonProperty", "(property) commonProperty: string | number");
18+
verify.memberListContains("commonProperty", "(property) commonProperty: number | string");
1919
verify.memberListContains("commonFunction", "(method) commonFunction(): number");
2020
verify.memberListCount(2);

tests/cases/fourslash/completionEntryForUnionProperty2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
////x.commonProperty./**/
1616

1717
goTo.marker();
18-
verify.memberListContains("toString", "(property) toString: (() => string) | ((radix?: number) => string)");
19-
verify.memberListContains("valueOf", "(method) valueOf(): string | number");
18+
verify.memberListContains("toString", "(property) toString: ((radix?: number) => string) | (() => string)");
19+
verify.memberListContains("valueOf", "(method) valueOf(): number | string");
2020
verify.memberListCount(2);

tests/cases/fourslash/genericTypeArgumentInference1.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
////var /*4*/r4 = _./*41*/all([<any>true], _.identity);
1919

2020
goTo.marker('1');
21-
verify.quickInfoIs('var r: string | number | boolean');
21+
verify.quickInfoIs('var r: boolean | number | string');
2222
goTo.marker('11');
23-
verify.quickInfoIs('(method) Underscore.Static.all<string | number | boolean>(list: (string | number | boolean)[], iterator?: Underscore.Iterator<string | number | boolean, boolean>, context?: any): string | number | boolean');
23+
verify.quickInfoIs('(method) Underscore.Static.all<boolean | number | string>(list: (boolean | number | string)[], iterator?: Underscore.Iterator<boolean | number | string, boolean>, context?: any): boolean | number | string');
2424

2525
goTo.marker('2');
2626
verify.quickInfoIs('var r2: boolean');

tests/cases/fourslash/genericTypeArgumentInference2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
////var /*4*/r4 = _./*41*/all([<any>true], _.identity);
1919

2020
goTo.marker('1');
21-
verify.quickInfoIs('var r: string | number | boolean');
21+
verify.quickInfoIs('var r: boolean | number | string');
2222
goTo.marker('11');
23-
verify.quickInfoIs('(method) Underscore.Static.all<string | number | boolean>(list: (string | number | boolean)[], iterator?: Underscore.Iterator<string | number | boolean, boolean>, context?: any): string | number | boolean');
23+
verify.quickInfoIs('(method) Underscore.Static.all<boolean | number | string>(list: (boolean | number | string)[], iterator?: Underscore.Iterator<boolean | number | string, boolean>, context?: any): boolean | number | string');
2424

2525
goTo.marker('2');
2626
verify.quickInfoIs('var r2: boolean');

tests/cases/fourslash/quickinfoForUnionProperty.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ verify.quickInfoIs('var x: One | Two');
2121

2222

2323
goTo.marker("2");
24-
verify.quickInfoIs('(property) commonProperty: string | number');
24+
verify.quickInfoIs('(property) commonProperty: number | string');
2525

2626
goTo.marker("3");
2727
verify.quickInfoIs('(method) commonFunction(): number');

tests/cases/fourslash/server/quickinfo01.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ verify.quickInfoIs('var x: One | Two');
2121

2222

2323
goTo.marker("2");
24-
verify.quickInfoIs('(property) commonProperty: string | number');
24+
verify.quickInfoIs('(property) commonProperty: number | string');
2525

2626
goTo.marker("3");
2727
verify.quickInfoIs('(method) commonFunction(): number');

0 commit comments

Comments
 (0)