diff options
author | Jackson Ray Hamilton <jackson@jacksonrayhamilton.com> | 2019-03-23 12:33:20 -0700 |
---|---|---|
committer | Jackson Ray Hamilton <jackson@jacksonrayhamilton.com> | 2019-04-08 22:48:21 -0700 |
commit | 2bedd23358d2d7378eec78d526ba1435d3b4d122 (patch) | |
tree | d55da54ae535277663cf090de7cabf31fe8c7b59 /test | |
parent | 8dae74236df2059b3df571f71733e2916ef55a58 (diff) | |
download | emacs-2bedd23358d2d7378eec78d526ba1435d3b4d122.tar.gz |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/manual/indent/js-jsx.js | 14 |
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 ( React.render( <input - />, + />, { a: 1 } @@ -242,12 +242,18 @@ export default ({ stars }) => ( // JS expressions should not break indentation // (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 ( <Router> <Bar> - <Route exact path="/foo" render={() => ( - <div>nothing</div> - )} /> + <Route exact path="/foo" + render={() => ( + <div>nothing</div> + )} /> <Route exact path="/bar" /> </Bar> </Router> |