Skip to content

Commit

Permalink
Chore: fix misleading indent test (#8925)
Browse files Browse the repository at this point in the history
This fixes an `indent` test that was intended to contain a `JSXExpressionContainer`, but actually contained a `BlockStatement`.
  • Loading branch information
not-an-aardvark authored and ilyavolodin committed Jul 16, 2017
1 parent fb8005d commit 10c3d78
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions tests/lib/rules/indent.js
Expand Up @@ -4535,15 +4535,17 @@ ruleTester.run("indent", rule, {
// Multiline ternary
// (multiline JSX, colon on its own line)
code: unIndent`
{!foo ?
<Foo
onClick={this.onClick}
/>
:
<Bar
onClick={this.onClick}
/>
}
<div>
{!foo ?
<Foo
onClick={this.onClick}
/>
:
<Bar
onClick={this.onClick}
/>
}
</div>
`
},
{
Expand Down

0 comments on commit 10c3d78

Please sign in to comment.