Skip to content

Commit

Permalink
workflow: modify formatter rules
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Jan 23, 2023
1 parent 288a00e commit 95f4956
Show file tree
Hide file tree
Showing 4 changed files with 224 additions and 223 deletions.
26 changes: 13 additions & 13 deletions __tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ import { mount } from '@vue/test-utils'
import { expect, test } from 'vitest'

test('string value in text mode', async () => {
const wrapper = mount(JsonEditorVue, {
props: {
mode: 'text',
modelValue: 'abc',
},
})
expect(wrapper.get('.cm-activeLine').text()).toEqual('"abc"')
const wrapper = mount(JsonEditorVue, {
props: {
mode: 'text',
modelValue: 'abc',
},
})
expect(wrapper.get('.cm-activeLine').text()).toEqual('"abc"')
})

test('string value in tree mode', async () => {
const wrapper = mount(JsonEditorVue, {
props: {
modelValue: 'abc',
},
})
expect(wrapper.get('.jse-value').text()).toEqual('abc')
const wrapper = mount(JsonEditorVue, {
props: {
modelValue: 'abc',
},
})
expect(wrapper.get('.jse-value').text()).toEqual('abc')
})
1 change: 1 addition & 0 deletions rome.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
}
},
"formatter": {
"indentStyle": "space",
"lineWidth": 120
},
"javascript": {
Expand Down
Loading

0 comments on commit 95f4956

Please sign in to comment.