Skip to content

Commit eeeb05b

Browse files
committed
Fixing fourslash tests
1 parent c8423d3 commit eeeb05b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/cases/fourslash/completionEntryForUnionProperty2.ts

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

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

tests/cases/fourslash/consistentContextualTypeErrorsAfterEdits.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
//// class A {
44
//// foo: string;
55
//// }
6-
//// class C extends A {
7-
//// baz: string;
6+
//// class C {
7+
//// foo: string;
88
//// }
9-
//// var xs /*1*/ = [(x: A) => { return x.foo; }, (x: C) => { return x.baz; }];
9+
//// var xs /*1*/ = [(x: A) => { return x.foo; }, (x: C) => { return x.foo; }];
1010
//// xs.forEach(y => y(new /*2*/A()));
1111

1212
verify.numberOfErrorsInCurrentFile(0);

tests/cases/fourslash/goToDefinitionUnionTypeProperty2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
goTo.marker("propertyReference");
2020
verify.definitionCountIs(2);
2121
goTo.definition(0);
22-
verify.caretAtMarker("propertyDefinition1");
22+
verify.caretAtMarker("propertyDefinition2");
2323

2424
goTo.marker("propertyReference");
2525
goTo.definition(1);
26-
verify.caretAtMarker("propertyDefinition2");
26+
verify.caretAtMarker("propertyDefinition1");

0 commit comments

Comments
 (0)