Skip to content

Commit 9a8f800

Browse files
committed
Add a test case for a fixed bug
Previously when "spacing" was set and "allowMultiline" was missing, it was set to `undefined` and not `true` (as it should).
1 parent 0f0ab21 commit 9a8f800

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/lib/rules/jsx-curly-spacing.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@ ruleTester.run('jsx-curly-spacing', rule, {
102102
'} />;'
103103
].join('\n'),
104104
options: [{spaces: 'always', spacing: {}}]
105+
}, {
106+
code: [
107+
'<App foo={',
108+
'bar',
109+
'} />;'
110+
].join('\n'),
111+
options: [{spaces: 'always', spacing: {}}],
112+
parserOptions: parserOptions
105113
}, {
106114
code: '<App foo={{ bar: true, baz: true }} />;',
107115
options: [{spaces: 'always', spacing: {objectLiterals: 'never'}}]

0 commit comments

Comments
 (0)