mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Update test
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//@Filename: file.tsx
|
||||
////function foo () {
|
||||
////function foo() {
|
||||
//// return (
|
||||
//// <div>
|
||||
/////*0*/hello
|
||||
@@ -10,14 +10,26 @@
|
||||
//// )
|
||||
////}
|
||||
|
||||
goTo.marker('0');
|
||||
verify.currentLineContentIs("hello");
|
||||
goTo.marker('1');
|
||||
verify.currentLineContentIs("goodbye");
|
||||
verify.currentFileContentIs(
|
||||
`function foo() {
|
||||
return (
|
||||
<div>
|
||||
hello
|
||||
goodbye
|
||||
</div>
|
||||
)
|
||||
}`
|
||||
);
|
||||
|
||||
format.document();
|
||||
|
||||
goTo.marker('0');
|
||||
verify.currentLineContentIs(" hello");
|
||||
goTo.marker('1');
|
||||
verify.currentLineContentIs(" goodbye");
|
||||
verify.currentFileContentIs(
|
||||
`function foo() {
|
||||
return (
|
||||
<div>
|
||||
hello
|
||||
goodbye
|
||||
</div>
|
||||
)
|
||||
}`
|
||||
);
|
||||
Reference in New Issue
Block a user