@@ -8,14 +8,17 @@ const localVue = getLocalVue(true);
88describe ( "InstanceDropdown" , ( ) => {
99 it ( "should render a drop down without upgrade if upgrade unavailable as an option" , async ( ) => {
1010 const wrapper = shallowMount ( InstanceDropdown as object , {
11- propsData : {
11+ props : {
1212 prefix : "file-source" ,
1313 name : "my cool instance" ,
1414 routeEdit : "/object_store_instance/edit" ,
1515 routeUpgrade : "/object_store_instance/upgrade" ,
1616 isUpgradable : false ,
1717 } ,
18- localVue,
18+ global : {
19+ ...localVue . global ,
20+ plugins : [ ...localVue . global . plugins ] ,
21+ } ,
1922 } ) ;
2023 const menu = wrapper . find ( ".dropdown-menu" ) ;
2124 const links = menu . findAll ( "button.dropdown-item" ) ;
@@ -24,14 +27,17 @@ describe("InstanceDropdown", () => {
2427
2528 it ( "should render a drop down with upgrade if upgrade available as an option" , async ( ) => {
2629 const wrapper = shallowMount ( InstanceDropdown as object , {
27- propsData : {
30+ props : {
2831 prefix : "file-source" ,
2932 name : "my cool instance" ,
3033 routeEdit : "/object_store_instance/edit" ,
3134 routeUpgrade : "/object_store_instance/upgrade" ,
3235 isUpgradable : true ,
3336 } ,
34- localVue,
37+ global : {
38+ ...localVue . global ,
39+ plugins : [ ...localVue . global . plugins ] ,
40+ } ,
3541 } ) ;
3642 const menu = wrapper . find ( ".dropdown-menu" ) ;
3743 const links = menu . findAll ( "button.dropdown-item" ) ;
0 commit comments