Skip to content

Commit 897e10a

Browse files
committed
Use range instead of two markers
1 parent 0a3c755 commit 897e10a

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tests/cases/fourslash/jsxExpressionFollowedByIdentifier.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@
33
//@Filename: jsxExpressionFollowedByIdentifier.tsx
44
////declare var React: any;
55
////declare var x: string;
6-
////const a = <div>{<div />/*1*/x/*2*/}</div>
6+
////const a = <div>{<div />[|x|]}</div>
77

8-
goTo.marker('1');
8+
const range = test.ranges()[0];
99
verify.getSyntacticDiagnostics([{
1010
code: 1005,
1111
message: "'}' expected.",
12-
range: {
13-
fileName: test.marker('1').fileName,
14-
pos: test.marker('1').position,
15-
end: test.marker('2').position,
16-
}
12+
range,
1713
}]);
18-
verify.quickInfoIs('var x: string');
14+
verify.quickInfoAt(range, 'var x: string');

0 commit comments

Comments
 (0)