@@ -337,34 +337,15 @@ describe('Renaming', async () => {
337
337
338
338
it ( 'Component props' , async ( ) => {
339
339
await ensureGlobalTypesHolder ( 'tsconfigProject' ) ;
340
- expect (
341
- await prepareDocument ( 'tsconfigProject/foo.vue' , 'vue' , `
342
- <template>
343
- <Comp :aaa-bbb="'foo'"></Comp>
344
- <Comp :aaaBbb="'foo'"></Comp>
345
- </template>
340
+ await prepareDocument ( 'tsconfigProject/foo.vue' , 'vue' , `
341
+ <template>
342
+ <Comp :aaa-bbb="'foo'"></Comp>
343
+ <Comp :aaaBbb="'foo'"></Comp>
344
+ </template>
346
345
347
- <script lang="ts" setup>
348
- import Comp from './fixture.vue';
349
- </script>
350
- ` )
351
- ) . toMatchInlineSnapshot ( `
352
- FullTextDocument {
353
- "_content": "
354
- <template>
355
- <Comp :aaa-bbb="'foo'"></Comp>
356
- <Comp :aaaBbb="'foo'"></Comp>
357
- </template>
358
-
359
- <script lang="ts" setup>
360
- import Comp from './fixture.vue';
361
- </script>
362
- ",
363
- "_languageId": "vue",
364
- "_lineOffsets": undefined,
365
- "_uri": "file:///Users/johnsonchu/Desktop/volar/vue/test-workspace/tsconfigProject/foo.vue",
366
- "_version": 1,
367
- }
346
+ <script lang="ts" setup>
347
+ import Comp from './fixture.vue';
348
+ </script>
368
349
` ) ;
369
350
expect (
370
351
await requestRename ( 'tsconfigProject/fixture.vue' , 'vue' , `
@@ -412,11 +393,11 @@ describe('Renaming', async () => {
412
393
"newText": "cccDdd",
413
394
"range": {
414
395
"end": {
415
- "character": 18 ,
396
+ "character": 17 ,
416
397
"line": 3,
417
398
},
418
399
"start": {
419
- "character": 12 ,
400
+ "character": 11 ,
420
401
"line": 3,
421
402
},
422
403
},
@@ -425,11 +406,11 @@ describe('Renaming', async () => {
425
406
"newText": "ccc-ddd",
426
407
"range": {
427
408
"end": {
428
- "character": 19 ,
409
+ "character": 18 ,
429
410
"line": 2,
430
411
},
431
412
"start": {
432
- "character": 12 ,
413
+ "character": 11 ,
433
414
"line": 2,
434
415
},
435
416
},
0 commit comments