From: Evan You Date: Sat, 25 Nov 2023 14:50:40 +0000 (+0800) Subject: chore: fix tests with rawExp X-Git-Tag: v3.4.0-alpha.2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bab5bd375b9073571a2d36bd0849a3a7b535783a;p=thirdparty%2Fvuejs%2Fcore.git chore: fix tests with rawExp --- diff --git a/packages/compiler-core/__tests__/__snapshots__/parse.spec.ts.snap b/packages/compiler-core/__tests__/__snapshots__/parse.spec.ts.snap index 348076cb61..3a6929d5e3 100644 --- a/packages/compiler-core/__tests__/__snapshots__/parse.spec.ts.snap +++ b/packages/compiler-core/__tests__/__snapshots__/parse.spec.ts.snap @@ -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, }, diff --git a/packages/compiler-core/__tests__/parse.spec.ts b/packages/compiler-core/__tests__/parse.spec.ts index e0f1d16ed8..5c7b6252a8 100644 --- a/packages/compiler-core/__tests__/parse.spec.ts +++ b/packages/compiler-core/__tests__/parse.spec.ts @@ -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 },