File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
test/unit/features/options Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,12 @@ describe('Options name', () => {
39
39
expect ( vm . options . components [ 'Hyper*Vue' ] ) . toBeUndefined ( )
40
40
} )
41
41
42
- it ( 'id should override given name when using Vue.component' , ( ) => {
42
+ it ( 'id should not override given name when using Vue.component' , ( ) => {
43
43
const SuperComponent = Vue . component ( 'super-component' , {
44
44
name : 'SuperVue'
45
45
} )
46
46
47
- expect ( SuperComponent . options . components [ 'SuperVue' ] ) . toBeUndefined ( )
48
- expect ( SuperComponent . options . components [ 'super-component' ] ) . toBeDefined ( )
47
+ expect ( SuperComponent . options . components [ 'SuperVue' ] ) . toEqual ( SuperComponent )
49
48
expect ( SuperComponent . options . components [ 'super-component' ] ) . toEqual ( SuperComponent )
50
49
} )
51
50
} )
You can’t perform that action at this time.
0 commit comments