Ajoute du tableau de bord
Signed-off-by: Gato <cedric@goutailler-olivier.fr>
This commit is contained in:
@@ -35,9 +35,9 @@ describe('Menu', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should have four menu items', () => {
|
||||
it('should have five menu items', () => {
|
||||
const items = (component as any).menuItems as { label: string; path: string }[];
|
||||
expect(items.length).toBe(4);
|
||||
expect(items.length).toBe(5);
|
||||
});
|
||||
|
||||
it('should contain Issues link', () => {
|
||||
@@ -50,6 +50,11 @@ describe('Menu', () => {
|
||||
expect(items.some((i) => i.path === '/milestones')).toBe(true);
|
||||
});
|
||||
|
||||
it('should contain Dashboard link', () => {
|
||||
const items = (component as any).menuItems as { label: string; path: string }[];
|
||||
expect(items.some((i) => i.path === '/dashboard')).toBe(true);
|
||||
});
|
||||
|
||||
it('logout calls keycloak.logout()', () => {
|
||||
(component as any).logout();
|
||||
expect(keycloakMock.logout).toHaveBeenCalled();
|
||||
|
||||
Reference in New Issue
Block a user