Implement protected Studio catalog API and bounded public source reader
This commit is contained in:
@@ -85,3 +85,7 @@ test('Woo variable parent range is not treated as an exact selected variant pric
|
||||
assert.equal(row.requiresVariantSelection, true);
|
||||
assert.deepEqual(row.priceRange, { minimum: 100, maximum: 200 });
|
||||
});
|
||||
|
||||
test('a repeated oversized product field cannot expand a small source into an unbounded catalog', () => {
|
||||
assert.throws(() => shopifyProducts({ products: [{ id: 1, title: 'x'.repeat(1025), variants: [{ id: 1, price: '1' }] }] }, context), { code: 'SOURCE_FIELD_TOO_LARGE' });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user