mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-02 12:07:39 +08:00
test: add test for ignoredElements
This commit is contained in:
parent
795b908095
commit
9f576aac7d
@ -44,4 +44,15 @@ describe('Global config', () => {
|
||||
expect(test.$options.__test__).toBe(3)
|
||||
})
|
||||
})
|
||||
|
||||
describe('ignoredElements', () => {
|
||||
it('should work', () => {
|
||||
Vue.config.ignoredElements = ['foo', /^ion-/]
|
||||
new Vue({
|
||||
template: `<div><foo/><ion-foo/><ion-bar/></div>`
|
||||
}).$mount()
|
||||
expect('Unknown custom element').not.toHaveBeenWarned()
|
||||
Vue.config.ignoredElements = []
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user