@@ -2,49 +2,49 @@ import React from 'react';
22import { mount } from 'enzyme' ;
33import { HelpIcon } from '@patternfly/react-icons' ;
44import { ApplicationLauncher } from '../ApplicationLauncher' ;
5- import { DropdownItem } from '../../Dropdown/DropdownItem ' ;
5+ import { ApplicationLauncherItem } from '../ApplicationLauncherItem ' ;
66
77import { DropdownPosition , DropdownDirection } from '../../Dropdown/dropdownConstants' ;
8- import { DropdownSeparator } from '../../Dropdown/DropdownSeparator ' ;
8+ import { ApplicationLauncherSeparator } from '../ApplicationLauncherSeparator ' ;
99
1010const dropdownItems = [
11- < DropdownItem key = "link" > Link</ DropdownItem > ,
12- < DropdownItem key = "action" component = "button" >
11+ < ApplicationLauncherItem key = "link" > Link</ ApplicationLauncherItem > ,
12+ < ApplicationLauncherItem key = "action" component = "button" >
1313 Action
14- </ DropdownItem > ,
15- < DropdownItem key = "disabled link" isDisabled >
14+ </ ApplicationLauncherItem > ,
15+ < ApplicationLauncherItem key = "disabled link" isDisabled >
1616 Disabled Link
17- </ DropdownItem > ,
18- < DropdownItem key = "disabled action" isDisabled component = "button" >
17+ </ ApplicationLauncherItem > ,
18+ < ApplicationLauncherItem key = "disabled action" isDisabled component = "button" >
1919 Disabled Action
20- </ DropdownItem > ,
21- < DropdownSeparator key = "separator" /> ,
22- < DropdownItem key = "separated link" > Separated Link</ DropdownItem > ,
23- < DropdownItem key = "separated action" component = "button" >
20+ </ ApplicationLauncherItem > ,
21+ < ApplicationLauncherSeparator key = "separator" /> ,
22+ < ApplicationLauncherItem key = "separated link" > Separated Link</ ApplicationLauncherItem > ,
23+ < ApplicationLauncherItem key = "separated action" component = "button" >
2424 Separated Action
25- </ DropdownItem >
25+ </ ApplicationLauncherItem >
2626] ;
2727
2828describe ( 'ApplicationLauncher' , ( ) => {
2929 test ( 'regular' , ( ) => {
30- const view = mount ( < ApplicationLauncher dropdownItems = { dropdownItems } /> ) ;
30+ const view = mount ( < ApplicationLauncher items = { dropdownItems } /> ) ;
3131 expect ( view ) . toMatchSnapshot ( ) ;
3232 } ) ;
3333
3434 test ( 'right aligned' , ( ) => {
35- const view = mount ( < ApplicationLauncher dropdownItems = { dropdownItems } position = { DropdownPosition . right } /> ) ;
35+ const view = mount ( < ApplicationLauncher items = { dropdownItems } position = { DropdownPosition . right } /> ) ;
3636 expect ( view ) . toMatchSnapshot ( ) ;
3737 } ) ;
3838
3939 test ( 'dropup' , ( ) => {
40- const view = mount ( < ApplicationLauncher dropdownItems = { dropdownItems } direction = { DropdownDirection . up } /> ) ;
40+ const view = mount ( < ApplicationLauncher items = { dropdownItems } direction = { DropdownDirection . up } /> ) ;
4141 expect ( view ) . toMatchSnapshot ( ) ;
4242 } ) ;
4343
4444 test ( 'dropup + right aligned' , ( ) => {
4545 const view = mount (
4646 < ApplicationLauncher
47- dropdownItems = { dropdownItems }
47+ items = { dropdownItems }
4848 direction = { DropdownDirection . up }
4949 position = { DropdownPosition . right }
5050 />
@@ -53,13 +53,13 @@ describe('ApplicationLauncher', () => {
5353 } ) ;
5454
5555 test ( 'expanded' , ( ) => {
56- const view = mount ( < ApplicationLauncher dropdownItems = { dropdownItems } isOpen /> ) ;
56+ const view = mount ( < ApplicationLauncher items = { dropdownItems } isOpen /> ) ;
5757 expect ( view ) . toMatchSnapshot ( ) ;
5858 } ) ;
5959
6060 test ( 'custom icon' , ( ) => {
6161 const view = mount (
62- < ApplicationLauncher dropdownItems = { dropdownItems } isOpen toggleIcon = { < HelpIcon id = "test-icon" /> } />
62+ < ApplicationLauncher items = { dropdownItems } isOpen toggleIcon = { < HelpIcon id = "test-icon" /> } />
6363 ) ;
6464 expect ( view ) . toMatchSnapshot ( ) ;
6565 } ) ;
0 commit comments