Skip to content

Commit 9f576aa

Browse files
committed
test: add test for ignoredElements
1 parent 795b908 commit 9f576aa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/unit/features/global-api/config.spec.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,15 @@ describe('Global config', () => {
4444
expect(test.$options.__test__).toBe(3)
4545
})
4646
})
47+
48+
describe('ignoredElements', () => {
49+
it('should work', () => {
50+
Vue.config.ignoredElements = ['foo', /^ion-/]
51+
new Vue({
52+
template: `<div><foo/><ion-foo/><ion-bar/></div>`
53+
}).$mount()
54+
expect('Unknown custom element').not.toHaveBeenWarned()
55+
Vue.config.ignoredElements = []
56+
})
57+
})
4758
})

0 commit comments

Comments
 (0)