Skip to content

Commit

Permalink
Update testint
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscoHernandez92 committed Apr 8, 2024
1 parent e95cace commit 0985d5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
];
];
2 changes: 1 addition & 1 deletion src/app/feature/card/card.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 0985d5f

Please sign in to comment.