Skip to content

Commit c65bfd7

Browse files
author
Stefan Buck
committed
Fix existing test fixtures
1 parent d9e6c6f commit c65bfd7

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

tests/lib/rules/jsx-indent.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,23 @@ ruleTester.run('jsx-indent', rule, {
157157
].join('\n'),
158158
options: [2],
159159
parserOptions: parserOptions,
160-
errors: [{message: 'Expected indentation of 2 space characters but found 9.'}]
160+
errors: [
161+
{message: 'Expected indentation of 2 space characters but found 9.'},
162+
{message: 'Expected indentation of 2 space characters but found 9.'}
163+
]
161164
}, {
162165
code: [
163166
'function App() {',
164-
' return (<App>',
165-
' <Foo />',
166-
' </App>);',
167+
' return (',
168+
' <App>',
169+
' <Foo />',
170+
' </App>',
171+
' );',
167172
'}'
168173
].join('\n'),
169174
options: [2],
170175
parserOptions: parserOptions,
171-
errors: [{message: 'Expected indentation of 2 space characters but found 4.'}]
176+
errors: [{message: 'Expected indentation of 4 space characters but found 6.'}]
172177
}, {
173178
code: [
174179
'function App() {',

0 commit comments

Comments
 (0)