File tree 4 files changed +224
-223
lines changed
4 files changed +224
-223
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,20 @@ import { mount } from '@vue/test-utils'
3
3
import { expect , test } from 'vitest'
4
4
5
5
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"' )
13
13
} )
14
14
15
15
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' )
22
22
} )
Original file line number Diff line number Diff line change 10
10
}
11
11
},
12
12
"formatter" : {
13
+ "indentStyle" : " space" ,
13
14
"lineWidth" : 120
14
15
},
15
16
"javascript" : {
You can’t perform that action at this time.
0 commit comments