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

@ -31,9 +31,10 @@ describe('purchases service', () => {
it('listPurchases builds query string', async () => {
mockGet.mockResolvedValue({ data: [] });
await listPurchases('hh1', { status: 'ordered', storeId: 'st-1', limit: 10 });
await listPurchases('hh1', { status: 'ordered', storeId: 'st-1', limit: 10, cursor: 'curr-123' });
expect(mockGet).toHaveBeenCalledWith(expect.stringContaining('status=ordered'));
expect(mockGet).toHaveBeenCalledWith(expect.stringContaining('storeId=st-1'));
expect(mockGet).toHaveBeenCalledWith(expect.stringContaining('cursor=curr-123'));
});
it('getPurchase calls GET', async () => {