feat(staples): A3/D3 — Pantry staples toggle UI #35

Merged
marcel merged 17 commits from feat/issue-20-pantry-staples into master 2026-04-03 09:35:03 +02:00
Showing only changes of commit df95462094 - Show all commits

View File

@@ -1,5 +1,6 @@
import { describe, it, expect, vi } from 'vitest';
import { render, screen } from '@testing-library/svelte';
import { userEvent } from '@testing-library/user-event';
import CategorySection from './CategorySection.svelte';
const mockIngredients = [
@@ -34,7 +35,6 @@ describe('CategorySection', () => {
});
it('calls onToggle with ingredient id and new value when chip is clicked', async () => {
const { userEvent } = await import('@testing-library/user-event');
const user = userEvent.setup();
const onToggle = vi.fn();
render(CategorySection, {