|
|
@@ -54,7 +54,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'rate_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'rate_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/rate', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'rate_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/rate', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -62,7 +62,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'parameters_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'parameters_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/parameter', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'parameters_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/parameter', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -70,7 +70,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'send_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'send_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/send', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'send_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/send', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -78,7 +78,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'state_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'state_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/state', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'state_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/state', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -86,7 +86,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'pay_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'pay_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/pay', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'pay_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/pay', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -94,7 +94,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'check_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'check_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/check', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'check_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/check', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -102,7 +102,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'ledger_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'ledger_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/ledger', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'ledger_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/ledger', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -110,7 +110,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'magazine_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'magazine_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/magazine', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'magazine_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/magazine', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -118,7 +118,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'ventilated_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'ventilated_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/ventilated', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'ventilated_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/ventilated', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -126,7 +126,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'pay_erase_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'pay_erase_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/payerase', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'pay_erase_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/payerase', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -134,7 +134,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'resume_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'resume_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/resume', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'resume_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/resume', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -142,7 +142,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'history_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'history_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/history', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'history_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/history', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -150,7 +150,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'call_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'call_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/call', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'call_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/call', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -158,7 +158,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'history_structure_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'history_structure_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/historystructure', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'history_structure_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/historystructure', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -166,7 +166,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'insurance_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'insurance_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/insurance', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'insurance_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/insurance', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -174,7 +174,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'resume_all_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'resume_all_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/resumeall', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'resume_all_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/resumeall', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
|
|
|
@@ -182,7 +182,7 @@ describe('build', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'resume_pay_cotisation_page')
|
|
|
|
|
|
expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'resume_pay_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/cotisation/resumepay', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
+ {label: 'resume_pay_cotisation', icon: {name: 'fas fa-euro-sign'}, to: 'https://mydomain.com/#/cotisation/resumepay', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
)
|
|
|
})
|
|
|
})
|