aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJackson Ray Hamilton2019-03-23 12:33:20 -0700
committerJackson Ray Hamilton2019-04-08 22:48:21 -0700
commit2bedd23358d2d7378eec78d526ba1435d3b4d122 (patch)
treed55da54ae535277663cf090de7cabf31fe8c7b59
parent8dae74236df2059b3df571f71733e2916ef55a58 (diff)
downloademacs-2bedd23358d2d7378eec78d526ba1435d3b4d122.tar.gz
emacs-2bedd23358d2d7378eec78d526ba1435d3b4d122.zip
Update expectations for JSX indentation in JSXAttribute space
* test/manual/indent/js-jsx.js: Align expectations for dangling closing constructs with other places in the tests.
-rw-r--r--test/manual/indent/js-jsx.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/manual/indent/js-jsx.js b/test/manual/indent/js-jsx.js
index af3c3405590..2ec00c63bbd 100644
--- a/test/manual/indent/js-jsx.js
+++ b/test/manual/indent/js-jsx.js
@@ -37,7 +37,7 @@ return (
37 37
38React.render( 38React.render(
39 <input 39 <input
40 />, 40 />,
41 { 41 {
42 a: 1 42 a: 1
43 } 43 }
@@ -242,12 +242,18 @@ export default ({ stars }) => (
242 242
243// JS expressions should not break indentation 243// JS expressions should not break indentation
244// (https://github.com/mooz/js2-mode/issues/462). 244// (https://github.com/mooz/js2-mode/issues/462).
245//
246// In the referenced issue, the user actually wanted indentation which
247// was simply different than Emacs’ SGML attribute indentation.
248// Nevertheless, his issue highlighted our inability to properly
249// indent code with JSX inside JSXExpressionContainers inside JSX.
245return ( 250return (
246 <Router> 251 <Router>
247 <Bar> 252 <Bar>
248 <Route exact path="/foo" render={() => ( 253 <Route exact path="/foo"
249 <div>nothing</div> 254 render={() => (
250 )} /> 255 <div>nothing</div>
256 )} />
251 <Route exact path="/bar" /> 257 <Route exact path="/bar" />
252 </Bar> 258 </Bar>
253 </Router> 259 </Router>