chore: testcase

This commit is contained in:
yangchangtao 2024-11-20 19:41:09 +08:00
parent 67d5bb3088
commit 17462b55a2
1 changed files with 8 additions and 0 deletions

View File

@ -500,3 +500,11 @@ test('local app config should not affect other local apps in v3 mode', () => {
const app2 = createApp({})
expect(app2.config.globalProperties.test).toBe(undefined)
})
test('ATTR_ENUMERATED_COERCION: false', () => {
const vm = new Vue({
compatConfig: { ATTR_ENUMERATED_COERCION: true },
template: `<div><div draggable="false">hello</div></div>`,
}).$mount()
expect(vm.$el.innerHTML).toBe(`<div draggable="false">hello</div>`)
})