Skip to content

Commit 95f4956

Browse files
committed
workflow: modify formatter rules
1 parent 288a00e commit 95f4956

File tree

4 files changed

+224
-223
lines changed

4 files changed

+224
-223
lines changed

__tests__/index.test.ts

+13-13
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ import { mount } from '@vue/test-utils'
33
import { expect, test } from 'vitest'
44

55
test('string value in text mode', async () => {
6-
const wrapper = mount(JsonEditorVue, {
7-
props: {
8-
mode: 'text',
9-
modelValue: 'abc',
10-
},
11-
})
12-
expect(wrapper.get('.cm-activeLine').text()).toEqual('"abc"')
6+
const wrapper = mount(JsonEditorVue, {
7+
props: {
8+
mode: 'text',
9+
modelValue: 'abc',
10+
},
11+
})
12+
expect(wrapper.get('.cm-activeLine').text()).toEqual('"abc"')
1313
})
1414

1515
test('string value in tree mode', async () => {
16-
const wrapper = mount(JsonEditorVue, {
17-
props: {
18-
modelValue: 'abc',
19-
},
20-
})
21-
expect(wrapper.get('.jse-value').text()).toEqual('abc')
16+
const wrapper = mount(JsonEditorVue, {
17+
props: {
18+
modelValue: 'abc',
19+
},
20+
})
21+
expect(wrapper.get('.jse-value').text()).toEqual('abc')
2222
})

rome.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
}
1111
},
1212
"formatter": {
13+
"indentStyle": "space",
1314
"lineWidth": 120
1415
},
1516
"javascript": {

0 commit comments

Comments
 (0)