acp stuff

This commit is contained in:
ntr committed 2022-08-23 23:35:25 +10:00
1 parent deb9eb3fc2
commit 047f606e83
14 files changed
+368 -44

No files matched your search

+2 -2
View File
@@ -51,8 +51,8 @@ describe('api', function apiTests() {
describe('offers', function offerTests() {
it('create offers', async function createOffersTest() {
const { data: bundles } = await api.get('/bundles');
const { seller } = bundles[0];
const { data } = await api.post('/offers', { seller, shipping: 50.0, baseShipping: 15.0 });
const listingIds = bundles[0].items.map(i => i.id);
const { data } = await api.post('/offers', { listingIds, shipping: 50.0, baseShipping: 15.0 });
});
});
});