Full tests coverage

This commit is contained in:
Aerilyn Weber 2026-05-19 14:09:03 +09:00
parent 99134d8556
commit 02d782c3da
157 changed files with 1074 additions and 34670 deletions

View file

@ -36,6 +36,12 @@ describe('refills service', () => {
expect(mockGet).toHaveBeenCalledWith(expect.stringContaining('userId=u-1'));
});
it('listRefillLists with no query', async () => {
mockGet.mockResolvedValue({ data: [] });
await listRefillLists('hh1');
expect(mockGet).toHaveBeenCalledWith('/households/hh1/refills/lists');
});
it('listRefillLists with query', async () => {
mockGet.mockResolvedValue({ data: [] });
await listRefillLists('hh1', { status: 'active' });