From 1c17d2c284ddd7e20166aa08f9eba04d1070a679 Mon Sep 17 00:00:00 2001 From: Fran Palmero Date: Wed, 6 Nov 2024 09:54:32 +0100 Subject: [PATCH] Feature #438: Creation of Mobile Navigation Menu - Nav Menu: Create Navigation Service shared for Desktop & Mobile Components. - Navigation Service: Add initial Test. - Navigation components: Update Tests. - Refactor code. - Update deprecated RouterTestingModule --- .../desktop-nav/desktop-nav.component.html | 2 +- .../desktop-nav/desktop-nav.component.spec.ts | 94 ++++++++++++------- .../desktop-nav/desktop-nav.component.ts | 30 ++---- .../layout/header/header.component.spec.ts | 3 +- .../mobile-nav/mobile-nav.component.html | 64 +++++++++++-- .../mobile-nav/mobile-nav.component.scss | 56 ++++++++++- .../mobile-nav/mobile-nav.component.spec.ts | 86 +++++++++++++---- .../header/mobile-nav/mobile-nav.component.ts | 17 +++- .../layout/main-menu/main-menu.component.html | 38 ++------ .../main-menu/main-menu.component.spec.ts | 6 +- .../layout/main-menu/main-menu.component.ts | 11 +-- src/app/core/layout/main/main.component.html | 2 - src/app/core/layout/main/main.component.scss | 2 +- .../core/layout/main/main.component.spec.ts | 8 +- .../challenge-info.component.scss | 6 -- .../components/starter/starter.component.scss | 2 +- src/app/services/nav.service.spec.ts | 79 ++++++++++++++++ src/app/services/nav.service.ts | 27 ++++++ 18 files changed, 389 insertions(+), 144 deletions(-) create mode 100644 src/app/services/nav.service.spec.ts create mode 100644 src/app/services/nav.service.ts diff --git a/src/app/core/layout/header/desktop-nav/desktop-nav.component.html b/src/app/core/layout/header/desktop-nav/desktop-nav.component.html index d12e1a7e..9704d6a4 100644 --- a/src/app/core/layout/header/desktop-nav/desktop-nav.component.html +++ b/src/app/core/layout/header/desktop-nav/desktop-nav.component.html @@ -2,7 +2,7 @@