|
@@ -48,16 +48,16 @@ describe('build', () => {
|
|
|
|
|
|
|
|
const result = menuBuilder.build() as MenuGroup
|
|
const result = menuBuilder.build() as MenuGroup
|
|
|
|
|
|
|
|
- expect(result.children).toEqual([
|
|
|
|
|
- {
|
|
|
|
|
- label: 'MyOrganization',
|
|
|
|
|
- icon: undefined,
|
|
|
|
|
- to: 'https://some-website.com/typo3',
|
|
|
|
|
- type: MENU_LINK_TYPE.EXTERNAL,
|
|
|
|
|
- active: false,
|
|
|
|
|
- },
|
|
|
|
|
- ])
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ expect(result.children).toEqual([
|
|
|
|
|
+ {
|
|
|
|
|
+ label: 'MyOrganization',
|
|
|
|
|
+ icon: undefined,
|
|
|
|
|
+ to: 'https://some-website.com',
|
|
|
|
|
+ type: MENU_LINK_TYPE.EXTERNAL,
|
|
|
|
|
+ active: false,
|
|
|
|
|
+ },
|
|
|
|
|
+ ])
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
test('with parents but no website', () => {
|
|
test('with parents but no website', () => {
|
|
|
organizationProfile.name = 'MyOrganization'
|
|
organizationProfile.name = 'MyOrganization'
|
|
@@ -112,7 +112,7 @@ describe('build', () => {
|
|
|
{
|
|
{
|
|
|
label: 'MyOrganization',
|
|
label: 'MyOrganization',
|
|
|
icon: undefined,
|
|
icon: undefined,
|
|
|
- to: 'https://some-website.com/typo3',
|
|
|
|
|
|
|
+ to: 'https://some-website.com',
|
|
|
type: MENU_LINK_TYPE.EXTERNAL,
|
|
type: MENU_LINK_TYPE.EXTERNAL,
|
|
|
active: false,
|
|
active: false,
|
|
|
},
|
|
},
|