Skip to content

Commit

Permalink
Add a test case for a fixed bug
Browse files Browse the repository at this point in the history
Previously when "spacing" was set and "allowMultiline" was missing,
it was set to `undefined` and not `true` (as it should).
  • Loading branch information
fatfisz committed Jun 11, 2017
1 parent 0f0ab21 commit 9a8f800
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/lib/rules/jsx-curly-spacing.js
Expand Up @@ -102,6 +102,14 @@ ruleTester.run('jsx-curly-spacing', rule, {
'} />;'
].join('\n'),
options: [{spaces: 'always', spacing: {}}]
}, {
code: [
'<App foo={',
'bar',
'} />;'
].join('\n'),
options: [{spaces: 'always', spacing: {}}],
parserOptions: parserOptions
}, {
code: '<App foo={{ bar: true, baz: true }} />;',
options: [{spaces: 'always', spacing: {objectLiterals: 'never'}}]
Expand Down

0 comments on commit 9a8f800

Please sign in to comment.