Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromvuejs/vue

Commit9f576aa

Browse files
committed
test: add test for ignoredElements
1 parent795b908 commit9f576aa

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+
newVue({
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)

[8]ページ先頭

©2009-2025 Movatter.jp