Skip to content

Commit 42babc5

Browse files
Use 'definitionCountIs' in union property tests.
1 parent 6c75349 commit 42babc5

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

tests/cases/fourslash/goToDefinitionUnionTypeProperty1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
////x./*propertyReference*/commonProperty;
1616
////x./*3*/commonFunction;
1717

18+
1819
goTo.marker("propertyReference");
20+
verify.definitionCountIs(2);
1921
goTo.definition(0);
2022
verify.caretAtMarker("propertyDefinition1");
2123

tests/cases/fourslash/goToDefinitionUnionTypeProperty2.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
////x.common./*propertyReference*/a;
1818

1919
goTo.marker("propertyReference");
20+
verify.definitionCountIs(2);
2021
goTo.definition(0);
2122
verify.caretAtMarker("propertyDefinition2");
2223

0 commit comments

Comments
 (0)