File tree Expand file tree Collapse file tree 4 files changed +224
-223
lines changed Expand file tree Collapse file tree 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'
33import { expect , test } from 'vitest'
44
55test ( '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
1515test ( '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} )
Original file line number Diff line number Diff line change 1010 }
1111 },
1212 "formatter" : {
13+ "indentStyle" : " space" ,
1314 "lineWidth" : 120
1415 },
1516 "javascript" : {
You can’t perform that action at this time.
0 commit comments