Full tests coverage
This commit is contained in:
parent
99134d8556
commit
02d782c3da
157 changed files with 1074 additions and 34670 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue