mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
fix jsxelement formatting
This commit is contained in:
19
tests/cases/fourslash/formattingJsxElements.ts
Normal file
19
tests/cases/fourslash/formattingJsxElements.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//@Filename: file.tsx
|
||||
////function () {
|
||||
//// return (
|
||||
//// <div className="commentBox" >
|
||||
////Hello, World!/*autoformat*/
|
||||
/////*indent*/
|
||||
//// </div>
|
||||
//// )
|
||||
////}
|
||||
////
|
||||
|
||||
|
||||
format.document();
|
||||
goTo.marker("autoformat");
|
||||
verify.currentLineContentIs(' Hello, World!');
|
||||
goTo.marker("indent");
|
||||
verify.indentationIs(12);
|
||||
Reference in New Issue
Block a user