|
|
@@ -42,7 +42,7 @@ describe('build', () => {
|
|
|
expect(result.label).toEqual('configuration')
|
|
|
expect(result.icon).toEqual({name: 'fas fa-cogs'})
|
|
|
// @ts-ignore
|
|
|
- expect(result.children.length).toEqual(13)
|
|
|
+ expect(result.children.length).toEqual(12)
|
|
|
})
|
|
|
|
|
|
test('has no items', () => {
|
|
|
@@ -99,14 +99,6 @@ describe('build', () => {
|
|
|
)
|
|
|
})
|
|
|
|
|
|
- test('has only rights for menu transition_next_year', () => {
|
|
|
- ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'transition_next_year_page')
|
|
|
-
|
|
|
- expect(menuBuilder.build()).toEqual(
|
|
|
- {label: 'transition_next_year', icon: undefined, to: 'https://mydomain.com/#/transition_next_year', type: MENU_LINK_TYPE.V1, active: false}
|
|
|
- )
|
|
|
- })
|
|
|
-
|
|
|
test('has only rights for menu course_duplication', () => {
|
|
|
ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'course_duplication_page')
|
|
|
|