Skip to content

Commit

Permalink
test: update
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jan 22, 2024
1 parent ed19b0f commit ff1b4a1
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion packages/compiler-vapor/__tests__/transforms/vBind.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ describe('compiler v-bind', () => {
content: `id`,
isStatic: false,
},
runtimeCamelize: false,
runtimePrefix: undefined,
})

expect(code).matchSnapshot()
Expand All @@ -207,6 +209,8 @@ describe('compiler v-bind', () => {
content: `fooBar`,
isStatic: false,
},
runtimeCamelize: false,
runtimePrefix: undefined,
})

expect(code).matchSnapshot()
Expand All @@ -220,7 +224,6 @@ describe('compiler v-bind', () => {
const { ir, code } = compileWithVBind(`<div v-bind:[foo].camel="id"/>`)

expect(ir.effect[0].operations[0]).toMatchObject({
runtimeCamelize: true,
key: {
content: `foo`,
isStatic: false,
Expand All @@ -229,6 +232,8 @@ describe('compiler v-bind', () => {
content: `id`,
isStatic: false,
},
runtimeCamelize: true,
runtimePrefix: undefined,
})

expect(code).matchSnapshot()
Expand All @@ -252,6 +257,8 @@ describe('compiler v-bind', () => {
content: `id`,
isStatic: false,
},
runtimeCamelize: false,
runtimePrefix: '.',
})

expect(code).matchSnapshot()
Expand All @@ -271,6 +278,8 @@ describe('compiler v-bind', () => {
content: `fooBar`,
isStatic: false,
},
runtimeCamelize: false,
runtimePrefix: '.',
})

expect(code).matchSnapshot()
Expand All @@ -290,6 +299,8 @@ describe('compiler v-bind', () => {
content: `id`,
isStatic: false,
},
runtimeCamelize: false,
runtimePrefix: '.',
})

expect(code).matchSnapshot()
Expand All @@ -313,6 +324,8 @@ describe('compiler v-bind', () => {
content: `id`,
isStatic: false,
},
runtimeCamelize: false,
runtimePrefix: '.',
})

expect(code).matchSnapshot()
Expand All @@ -332,6 +345,8 @@ describe('compiler v-bind', () => {
content: `fooBar`,
isStatic: false,
},
runtimeCamelize: false,
runtimePrefix: '.',
})

expect(code).matchSnapshot()
Expand All @@ -351,6 +366,8 @@ describe('compiler v-bind', () => {
content: `id`,
isStatic: false,
},
runtimeCamelize: false,
runtimePrefix: '^',
})

expect(code).matchSnapshot()
Expand All @@ -370,6 +387,8 @@ describe('compiler v-bind', () => {
content: `fooBar`,
isStatic: false,
},
runtimeCamelize: false,
runtimePrefix: '^',
})

expect(code).matchSnapshot()
Expand Down

0 comments on commit ff1b4a1

Please sign in to comment.