From 0985d5f26ae7ca677f8dc09b0253126b9ff07833 Mon Sep 17 00:00:00 2001 From: fran hernandez Date: Mon, 8 Apr 2024 09:44:13 +0200 Subject: [PATCH] Update testint --- src/app/app.routes.ts | 14 +++++++------- src/app/feature/card/card.component.spec.ts | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 3d5edb5..faba779 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -3,35 +3,35 @@ import { Routes } from '@angular/router'; export const routes: Routes = [ { path: 'home', - title: 'Home', + title: 'ProjectMeowth:Home', loadComponent: () => import('./feature/home/home.component'), }, { path: 'details', - title: 'details', + title: 'ProjectMeowth:Details', loadComponent: () => import('./feature/details/details.component'), }, { path: 'error', - title: 'error', + title: 'ProjectMeowth:Error', loadComponent: () => import('./feature/error/error.component'), }, { path: 'favorite', - title: 'favorite', + title: 'ProjectMeowth:Favorite', loadComponent: () => import('./feature/favorite/favorite.component'), }, { path: 'create', - title: 'create', + title: 'ProjectMeowth:Create', loadComponent: () => import('./feature/createcard/createcard.component'), }, { path: 'edit', - title: 'edit', + title: 'ProjectMeowth:Edit', loadComponent: () => import('./feature/editcard/editcard/editcard.component'), }, { path: '', pathMatch: 'full', redirectTo: 'Home' }, { path: '**', redirectTo: 'home' }, -]; +]; diff --git a/src/app/feature/card/card.component.spec.ts b/src/app/feature/card/card.component.spec.ts index 3b154c1..7a78638 100644 --- a/src/app/feature/card/card.component.spec.ts +++ b/src/app/feature/card/card.component.spec.ts @@ -34,7 +34,7 @@ describe('CardComponent', () => { } as MagicCard; component.card = testCard; fixture.detectChanges(); - const image = fixture.debugElement.query(By.css('li img')).nativeElement; + const image = fixture.debugElement.query(By.css('img')).nativeElement; expect(image.src).toEqual(testCard.imageUrl); expect(image.alt).toEqual(testCard.name); });