Add React imports to marketplace policy pages
This commit is contained in:
@@ -14,7 +14,7 @@ describe('marketplace API helpers', () => {
|
||||
Object.defineProperty(globalThis, 'fetch', { configurable: true, value: fetchMock })
|
||||
|
||||
await expect(marketplaceFetch('/marketplace/vehicles')).resolves.toEqual([{ id: 'vehicle_1' }])
|
||||
expect(fetchMock).toHaveBeenCalledWith('http://localhost:4000/api/v1/marketplace/vehicles', { cache: 'no-store' })
|
||||
expect(fetchMock).toHaveBeenCalledWith(expect.stringMatching(/\/api\/v1\/marketplace\/vehicles$/), { cache: 'no-store' })
|
||||
})
|
||||
|
||||
it('throws rich marketplace API errors', async () => {
|
||||
|
||||
Reference in New Issue
Block a user