diff options
| author | Theodor Thornhill | 2024-07-21 14:55:06 +0200 |
|---|---|---|
| committer | Theodor Thornhill | 2024-07-21 14:55:06 +0200 |
| commit | bb0f0c04a3985649f8ef86d9c3cbe68b78bee1aa (patch) | |
| tree | 73686791ac2e7bfa9bcff853b1f99ee0f2247397 | |
| parent | 810be9cf863ecf74d6ca649ce38450a44ae55719 (diff) | |
| download | emacs-bb0f0c04a3985649f8ef86d9c3cbe68b78bee1aa.tar.gz emacs-bb0f0c04a3985649f8ef86d9c3cbe68b78bee1aa.zip | |
Improve one test (bug#71998)
* test/lisp/progmodes/typescript-ts-mode-resources/indent.erts (Name):
Add pre-indent state.
| -rw-r--r-- | test/lisp/progmodes/typescript-ts-mode-resources/indent.erts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/lisp/progmodes/typescript-ts-mode-resources/indent.erts b/test/lisp/progmodes/typescript-ts-mode-resources/indent.erts index 877382953c1..343eababf54 100644 --- a/test/lisp/progmodes/typescript-ts-mode-resources/indent.erts +++ b/test/lisp/progmodes/typescript-ts-mode-resources/indent.erts | |||
| @@ -104,6 +104,24 @@ Name: JSX indentation | |||
| 104 | 104 | ||
| 105 | =-= | 105 | =-= |
| 106 | const foo = (props) => { | 106 | const foo = (props) => { |
| 107 | return ( | ||
| 108 | <div> | ||
| 109 | <div> | ||
| 110 | <div> | ||
| 111 | <div> | ||
| 112 | { | ||
| 113 | props.foo | ||
| 114 | ? Hello, foo! | ||
| 115 | : Hello, World!; | ||
| 116 | } | ||
| 117 | </div> | ||
| 118 | </div> | ||
| 119 | </div> | ||
| 120 | </div> | ||
| 121 | ); | ||
| 122 | } | ||
| 123 | =-= | ||
| 124 | const foo = (props) => { | ||
| 107 | return ( | 125 | return ( |
| 108 | <div> | 126 | <div> |
| 109 | <div> | 127 | <div> |