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.
parent 8dae7423
...@@ -37,7 +37,7 @@ return ( ...@@ -37,7 +37,7 @@ return (
React.render( React.render(
<input <input
/>, />,
{ {
a: 1 a: 1
} }
...@@ -242,12 +242,18 @@ export default ({ stars }) => ( ...@@ -242,12 +242,18 @@ export default ({ stars }) => (
// JS expressions should not break indentation // JS expressions should not break indentation
// (https://github.com/mooz/js2-mode/issues/462). // (https://github.com/mooz/js2-mode/issues/462).
//
// In the referenced issue, the user actually wanted indentation which
// was simply different than Emacs’ SGML attribute indentation.
// Nevertheless, his issue highlighted our inability to properly
// indent code with JSX inside JSXExpressionContainers inside JSX.
return ( return (
<Router> <Router>
<Bar> <Bar>
<Route exact path="/foo" render={() => ( <Route exact path="/foo"
<div>nothing</div> render={() => (
)} /> <div>nothing</div>
)} />
<Route exact path="/bar" /> <Route exact path="/bar" />
</Bar> </Bar>
</Router> </Router>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment