Skip to content

Commit 9115058

Browse files
committed
test: ✅ add todo for keyword filtering in RecipeSearch tests
1 parent 1584af0 commit 9115058

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

apps/402-recipe-search-filter-interaction-starter/src/app/recipe/recipe-search.browser.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ describe(RecipeSearch.name, () => {
1616
await expect.element(getRecipeNameEls().nth(1)).toHaveTextContent('Salad');
1717
});
1818

19+
it.todo('🚧 filters recipes by keywords');
20+
1921
async function mountRecipeSearch() {
2022
TestBed.configureTestingModule({
2123
providers: [provideRecipeRepositoryFake()],
@@ -32,6 +34,10 @@ describe(RecipeSearch.name, () => {
3234
getRecipeNameEls() {
3335
return page.getByRole('heading');
3436
},
37+
async updateFilter({ keywords }: { keywords: string }) {
38+
// TODO: implement this
39+
throw new Error('🚧 Work in progress!');
40+
},
3541
};
3642
}
3743
});

apps/402-recipe-search-filter-interaction-starter/src/app/recipe/recipe-search.integration.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ describe(RecipeSearch.name, () => {
1515
expect(getRecipeNameEls()[1]).toHaveTextContent('Salad');
1616
});
1717

18+
it.todo('🚧 filters recipes by keywords');
19+
1820
async function mountRecipeSearch() {
1921
const { fixture } = await render(RecipeSearch, {
2022
providers: [provideRecipeRepositoryFake()],
@@ -34,6 +36,10 @@ describe(RecipeSearch.name, () => {
3436
getRecipeNameEls() {
3537
return screen.queryAllByRole('heading');
3638
},
39+
async updateFilter({ keywords }: { keywords: string }) {
40+
// TODO: implement this
41+
throw new Error('🚧 Work in progress!');
42+
},
3743
};
3844
}
3945
});

apps/402-recipe-search-filter-interaction-starter/src/app/recipe/recipe-search.isolated.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ describe(RecipeSearch.name, () => {
1313
expect(getRecipeNames()).toEqual(['Burger', 'Salad']);
1414
});
1515

16+
it.todo('🚧 filters recipes by keywords');
17+
1618
function createComponent() {
1719
TestBed.configureTestingModule({
1820
providers: [RecipeSearch, provideRecipeRepositoryFake()],
@@ -29,6 +31,10 @@ describe(RecipeSearch.name, () => {
2931
getRecipeNames() {
3032
return component.recipes()?.map((recipe) => recipe.name);
3133
},
34+
async updateFilter({ keywords }: { keywords: string }) {
35+
// TODO: implement this
36+
throw new Error('🚧 Work in progress!');
37+
},
3238
};
3339
}
3440
});

0 commit comments

Comments
 (0)