]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix tests with rawExp
authorEvan You <yyx990803@gmail.com>
Sat, 25 Nov 2023 14:50:40 +0000 (22:50 +0800)
committerEvan You <yyx990803@gmail.com>
Sat, 25 Nov 2023 14:50:40 +0000 (22:50 +0800)
packages/compiler-core/__tests__/__snapshots__/parse.spec.ts.snap
packages/compiler-core/__tests__/parse.spec.ts

index 348076cb61e0d2313dd4a0a7150a87553c95c3c6..3a6929d5e35db5cf586cd3edf9aab3d091fce0e5 100644 (file)
@@ -3882,7 +3882,6 @@ exports[`compiler: parse > Errors > X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END > <
           },
           "modifiers": [],
           "name": "foo",
-          "rawExp": undefined,
           "rawName": "v-foo:[sef",
           "type": 7,
         },
@@ -4487,7 +4486,6 @@ exports[`compiler: parse > self closing multiple tag 1`] = `
           },
           "modifiers": [],
           "name": "bind",
-          "rawExp": "{ some: condition }",
           "rawName": ":class",
           "type": 7,
         },
@@ -4568,7 +4566,6 @@ exports[`compiler: parse > self closing multiple tag 1`] = `
           },
           "modifiers": [],
           "name": "bind",
-          "rawExp": "{ color: 'red' }",
           "rawName": "v-bind:style",
           "type": 7,
         },
@@ -4683,7 +4680,6 @@ exports[`compiler: parse > valid html 1`] = `
               },
               "modifiers": [],
               "name": "bind",
-              "rawExp": "{ color: 'red' }",
               "rawName": "v-bind:style",
               "type": 7,
             },
@@ -4783,7 +4779,6 @@ exports[`compiler: parse > valid html 1`] = `
           },
           "modifiers": [],
           "name": "bind",
-          "rawExp": "{ some: condition }",
           "rawName": ":class",
           "type": 7,
         },
index e0f1d16ed8f8305bd7f991f40907c946057f0306..5c7b6252a8f084ba4aca36f4db13c4f787f774d5 100644 (file)
@@ -1143,7 +1143,6 @@ describe('compiler: parse', () => {
         arg: undefined,
         modifiers: [],
         exp: undefined,
-        rawExp: undefined,
         loc: {
           start: { offset: 5, line: 1, column: 6 },
           end: { offset: 9, line: 1, column: 10 },
@@ -1173,7 +1172,6 @@ describe('compiler: parse', () => {
             source: 'a'
           }
         },
-        rawExp: 'a',
         loc: {
           start: { offset: 5, line: 1, column: 6 },
           end: { offset: 13, line: 1, column: 14 },
@@ -1203,7 +1201,6 @@ describe('compiler: parse', () => {
         },
         modifiers: [],
         exp: undefined,
-        rawExp: undefined,
         loc: {
           start: { offset: 5, line: 1, column: 6 },
           end: { offset: 15, line: 1, column: 16 },
@@ -1260,7 +1257,6 @@ describe('compiler: parse', () => {
         },
         modifiers: [],
         exp: undefined,
-        rawExp: undefined,
         loc: {
           start: { offset: 5, line: 1, column: 6 },
           end: { offset: 17, line: 1, column: 18 },
@@ -1280,7 +1276,6 @@ describe('compiler: parse', () => {
         arg: undefined,
         modifiers: ['enter'],
         exp: undefined,
-        rawExp: undefined,
         loc: {
           start: { offset: 5, line: 1, column: 6 },
           end: { offset: 15, line: 1, column: 16 },
@@ -1300,7 +1295,6 @@ describe('compiler: parse', () => {
         arg: undefined,
         modifiers: ['enter', 'exact'],
         exp: undefined,
-        rawExp: undefined,
         loc: {
           start: { offset: 5, line: 1, column: 6 },
           end: { offset: 21, line: 1, column: 22 },
@@ -1330,7 +1324,6 @@ describe('compiler: parse', () => {
         },
         modifiers: ['enter', 'exact'],
         exp: undefined,
-        rawExp: undefined,
         loc: {
           start: { offset: 5, line: 1, column: 6 },
           end: { offset: 27, line: 1, column: 28 },
@@ -1360,7 +1353,6 @@ describe('compiler: parse', () => {
         },
         modifiers: ['camel'],
         exp: undefined,
-        rawExp: undefined,
         loc: {
           start: { offset: 5, line: 1, column: 6 },
           end: { offset: 21, line: 1, column: 22 },
@@ -1427,7 +1419,6 @@ describe('compiler: parse', () => {
             source: 'b'
           }
         },
-        rawExp: 'b',
         loc: {
           start: { offset: 5, line: 1, column: 6 },
           end: { offset: 9, line: 1, column: 10 },
@@ -1467,7 +1458,6 @@ describe('compiler: parse', () => {
             source: 'b'
           }
         },
-        rawExp: 'b',
         loc: {
           start: { offset: 5, line: 1, column: 6 },
           end: { offset: 9, line: 1, column: 10 },
@@ -1508,7 +1498,6 @@ describe('compiler: parse', () => {
             source: 'b'
           }
         },
-        rawExp: 'b',
         loc: {
           start: { offset: 5, line: 1, column: 6 },
           end: { offset: 14, line: 1, column: 15 },
@@ -1549,7 +1538,6 @@ describe('compiler: parse', () => {
             source: 'b'
           }
         },
-        rawExp: 'b',
         loc: {
           start: { offset: 5, line: 1, column: 6 },
           end: { offset: 9, line: 1, column: 10 },
@@ -1590,7 +1578,6 @@ describe('compiler: parse', () => {
             source: 'b'
           }
         },
-        rawExp: 'b',
         loc: {
           start: { offset: 5, line: 1, column: 6 },
           end: { offset: 15, line: 1, column: 16 },
@@ -1631,7 +1618,6 @@ describe('compiler: parse', () => {
             source: '{ b }'
           }
         },
-        rawExp: '{ b }',
         loc: {
           start: { offset: 6, line: 1, column: 7 },
           end: { offset: 16, line: 1, column: 17 },