Skip to content

Commit 06fd879

Browse files
author
yangchangtao
committed
chore: testcase
1 parent d996c6a commit 06fd879

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/vue-compat/__tests__/global.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,3 +500,11 @@ test('local app config should not affect other local apps in v3 mode', () => {
500500
const app2 = createApp({})
501501
expect(app2.config.globalProperties.test).toBe(undefined)
502502
})
503+
504+
test('ATTR_ENUMERATED_COERCION: false', () => {
505+
const vm = new Vue({
506+
compatConfig: { ATTR_ENUMERATED_COERCION: true },
507+
template: `<div><div draggable="false">hello</div></div>`,
508+
}).$mount()
509+
expect(vm.$el.innerHTML).toBe(`<div draggable="false">hello</div>`)
510+
})

0 commit comments

Comments
 (0)