We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 795b908 commit 9f576aaCopy full SHA for 9f576aa
test/unit/features/global-api/config.spec.js
@@ -44,4 +44,15 @@ describe('Global config', () => {
44
expect(test.$options.__test__).toBe(3)
45
})
46
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
58
0 commit comments