Skip to content

Commit

Permalink
[jsx mode] Add test case for spread syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Dec 29, 2015
1 parent e3dc973 commit d103ebf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion mode/jsx/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,14 @@

MT("missing_attr",
"([bracket&tag <][tag foo] [attribute selected][bracket&tag />][operator ++])")


MT("indent_js",
"([bracket&tag <][tag foo][bracket&tag >]",
" [bracket&tag <][tag bar] [attribute baz]={[keyword function]() {",
" [keyword return] [number 10]",
" }}[bracket&tag />]",
" [bracket&tag </][tag foo][bracket&tag >])")

MT("spread",
"([bracket&tag <][tag foo] [attribute bar]={[meta ...][variable baz] [operator /][number 2]}[bracket&tag />])")
})()

0 comments on commit d103ebf

Please sign in to comment.