|
@@ -82,10 +82,18 @@ describe('build', () => {
|
|
|
expect(menuBuilder.build()).toEqual({
|
|
expect(menuBuilder.build()).toEqual({
|
|
|
label: 'cmf_licence_generate',
|
|
label: 'cmf_licence_generate',
|
|
|
icon: undefined,
|
|
icon: undefined,
|
|
|
- to: '/cmf_licence_structure',
|
|
|
|
|
- type: MENU_LINK_TYPE.INTERNAL,
|
|
|
|
|
|
|
+ to: 'https://mydomain.com/#/licence_cmf/organization',
|
|
|
|
|
+ type: MENU_LINK_TYPE.V1,
|
|
|
active: false,
|
|
active: false,
|
|
|
})
|
|
})
|
|
|
|
|
+ //
|
|
|
|
|
+ // expect(menuBuilder.build()).toEqual({
|
|
|
|
|
+ // label: 'cmf_licence_generate',
|
|
|
|
|
+ // icon: undefined,
|
|
|
|
|
+ // to: '/cmf_licence_structure',
|
|
|
|
|
+ // type: MENU_LINK_TYPE.INTERNAL,
|
|
|
|
|
+ // active: false,
|
|
|
|
|
+ // })
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
test('has only rights for menu parameters', () => {
|
|
test('has only rights for menu parameters', () => {
|
|
@@ -94,13 +102,23 @@ describe('build', () => {
|
|
|
action === 'display' && subject === 'parameters_page',
|
|
action === 'display' && subject === 'parameters_page',
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
+ menuBuilder.organizationProfile.id = 123
|
|
|
|
|
+
|
|
|
expect(menuBuilder.build()).toEqual({
|
|
expect(menuBuilder.build()).toEqual({
|
|
|
label: 'parameters',
|
|
label: 'parameters',
|
|
|
icon: undefined,
|
|
icon: undefined,
|
|
|
- to: '/parameters',
|
|
|
|
|
- type: MENU_LINK_TYPE.INTERNAL,
|
|
|
|
|
|
|
+ to: 'https://mydomain.com/#/main/edit/parameters/123',
|
|
|
|
|
+ type: MENU_LINK_TYPE.V1,
|
|
|
active: false,
|
|
active: false,
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
|
|
+ // expect(menuBuilder.build()).toEqual({
|
|
|
|
|
+ // label: 'parameters',
|
|
|
|
|
+ // icon: undefined,
|
|
|
|
|
+ // to: '/parameters',
|
|
|
|
|
+ // type: MENU_LINK_TYPE.INTERNAL,
|
|
|
|
|
+ // active: false,
|
|
|
|
|
+ // })
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
test('has only rights for menu place', () => {
|
|
test('has only rights for menu place', () => {
|