]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix typescript-ts-mode indentation tests (bug#71998)
authorYuan Fu <casouri@gmail.com>
Mon, 24 Feb 2025 06:04:32 +0000 (22:04 -0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 26 Feb 2025 09:33:43 +0000 (10:33 +0100)
* test/lisp/progmodes/typescript-ts-mode-resources/indent.erts:
(JSX indentation): Add quote and remove semi-colon, so the code
is valid.

(cherry picked from commit 3d46f3e3ed50753766f87f995f9514dff9a6abed)

test/lisp/progmodes/typescript-ts-mode-resources/indent.erts

index 343eababf54f443f78a2e534ad794e8d7e672b2c..23cebb4c396e8d62185eeb23a9f0cba94d98e245 100644 (file)
@@ -111,8 +111,8 @@ return (
 <div>
 {
 props.foo
-? Hello, foo!
-: Hello, World!;
+? 'Hello, foo!'
+: 'Hello, World!'
 }
 </div>
 </div>
@@ -129,8 +129,8 @@ const foo = (props) => {
           <div>
             {
               props.foo
-                ? Hello, foo!
-                : Hello, World!;
+                ? 'Hello, foo!'
+                : 'Hello, World!'
             }
           </div>
         </div>