Skip to content

Commit 6435e90

Browse files
Merge pull request #316 from COS301-SE-2023/300-uiux-revised-recipe
300 uiux revised recipe
2 parents e6b4871 + a078394 commit 6435e90

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

libs/app/recipe/feature/src/recipe.page.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ describe('RecipeDetailPageComponent', () => {
189189
});
190190
});
191191

192-
describe('RecipeDetailPageComponent', () => {
192+
describe('RecipeDetailPageComponent Ingredient Check', () => {
193193

194194
const testRecipe: IRecipe = {
195195
recipeId: 'test-id',

libs/app/recipe/ui/src/recipe-card/recipe-card.component.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,13 @@ describe('RecipeCardComponent', () => {
200200

201201
it('should navigate to recipe page', () => {
202202
component.navigateToRecipe();
203-
expect(store.dispatch).toBeCalledWith(new IncreaseViews());
204203
expect(store.dispatch).toBeCalledWith(new Navigate([`/recipe/${testRecipe.recipeId}`]));
205204
});
206205
});
207206

208207
describe('RecipeCardComponent', () => {
209208
let component: RecipeCardComponent;
210209
let fixture: ComponentFixture<RecipeCardComponent>;
211-
let store: Store;
212210

213211
const testRecipe: IRecipe = {
214212
recipeId: 'test-id',
@@ -255,7 +253,6 @@ describe('RecipeCardComponent', () => {
255253
fixture = TestBed.createComponent(RecipeCardComponent);
256254
component = fixture.componentInstance;
257255
component.recipe = testRecipe;
258-
store = TestBed.inject(Store);
259256
fixture.detectChanges();
260257
});
261258

0 commit comments

Comments
 (0)