|
@@ -272,7 +272,7 @@ describe('Custom field relations', () => {
|
|
|
assertTranslatableCustomFieldValues(product);
|
|
assertTranslatableCustomFieldValues(product);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // https://github.com/vendure-ecommerce/vendure/issues/2453
|
|
|
|
|
|
|
+ // https://github.com/vendurehq/vendure/issues/2453
|
|
|
it('translatable eager-loaded relation works (issue 2453)', async () => {
|
|
it('translatable eager-loaded relation works (issue 2453)', async () => {
|
|
|
const { collections } = await adminClient.query(gql`
|
|
const { collections } = await adminClient.query(gql`
|
|
|
query {
|
|
query {
|
|
@@ -495,7 +495,7 @@ describe('Custom field relations', () => {
|
|
|
assertCustomFieldIds(updateCollection.customFields, 'T_2', ['T_3', 'T_4']);
|
|
assertCustomFieldIds(updateCollection.customFields, 'T_2', ['T_3', 'T_4']);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // https://github.com/vendure-ecommerce/vendure/issues/2840
|
|
|
|
|
|
|
+ // https://github.com/vendurehq/vendure/issues/2840
|
|
|
it('updating custom field relation on Collection does not delete primitive values', async () => {
|
|
it('updating custom field relation on Collection does not delete primitive values', async () => {
|
|
|
const { updateCollection } = await adminClient.query(gql`
|
|
const { updateCollection } = await adminClient.query(gql`
|
|
|
mutation {
|
|
mutation {
|
|
@@ -612,7 +612,7 @@ describe('Custom field relations', () => {
|
|
|
assertCustomFieldIds(updateFacet.customFields, 'T_2', ['T_3', 'T_4']);
|
|
assertCustomFieldIds(updateFacet.customFields, 'T_2', ['T_3', 'T_4']);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // https://github.com/vendure-ecommerce/vendure/issues/2840
|
|
|
|
|
|
|
+ // https://github.com/vendurehq/vendure/issues/2840
|
|
|
it('updating custom field relation on Facet does not delete primitive values', async () => {
|
|
it('updating custom field relation on Facet does not delete primitive values', async () => {
|
|
|
const { updateFacet } = await adminClient.query(gql`
|
|
const { updateFacet } = await adminClient.query(gql`
|
|
|
mutation {
|
|
mutation {
|
|
@@ -672,7 +672,7 @@ describe('Custom field relations', () => {
|
|
|
assertCustomFieldIds(updateFacetValues[0].customFields, 'T_2', ['T_3', 'T_4']);
|
|
assertCustomFieldIds(updateFacetValues[0].customFields, 'T_2', ['T_3', 'T_4']);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // https://github.com/vendure-ecommerce/vendure/issues/2840
|
|
|
|
|
|
|
+ // https://github.com/vendurehq/vendure/issues/2840
|
|
|
it('updating custom field relation on FacetValue does not delete primitive values', async () => {
|
|
it('updating custom field relation on FacetValue does not delete primitive values', async () => {
|
|
|
const { updateFacetValues } = await adminClient.query(gql`
|
|
const { updateFacetValues } = await adminClient.query(gql`
|
|
|
mutation {
|
|
mutation {
|
|
@@ -766,7 +766,7 @@ describe('Custom field relations', () => {
|
|
|
assertCustomFieldIds(setOrderCustomFields.customFields, 'T_1', ['T_1', 'T_2']);
|
|
assertCustomFieldIds(setOrderCustomFields.customFields, 'T_1', ['T_1', 'T_2']);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // https://github.com/vendure-ecommerce/vendure/issues/1664#issuecomment-1320872627
|
|
|
|
|
|
|
+ // https://github.com/vendurehq/vendure/issues/1664#issuecomment-1320872627
|
|
|
it('admin order query with eager-loaded custom field relation', async () => {
|
|
it('admin order query with eager-loaded custom field relation', async () => {
|
|
|
const { order } = await adminClient.query(gql`
|
|
const { order } = await adminClient.query(gql`
|
|
|
query {
|
|
query {
|
|
@@ -846,7 +846,7 @@ describe('Custom field relations', () => {
|
|
|
assertCustomFieldIds(updateProduct.customFields, 'T_2', ['T_3', 'T_4']);
|
|
assertCustomFieldIds(updateProduct.customFields, 'T_2', ['T_3', 'T_4']);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // https://github.com/vendure-ecommerce/vendure/issues/2840
|
|
|
|
|
|
|
+ // https://github.com/vendurehq/vendure/issues/2840
|
|
|
it('updating custom field relation on Product does not delete primitive values', async () => {
|
|
it('updating custom field relation on Product does not delete primitive values', async () => {
|
|
|
const { updateProduct } = await adminClient.query(gql`
|
|
const { updateProduct } = await adminClient.query(gql`
|
|
|
mutation {
|
|
mutation {
|
|
@@ -904,7 +904,7 @@ describe('Custom field relations', () => {
|
|
|
assertCustomFieldIds(updateProductVariants[0].customFields, 'T_2', ['T_3', 'T_4']);
|
|
assertCustomFieldIds(updateProductVariants[0].customFields, 'T_2', ['T_3', 'T_4']);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // https://github.com/vendure-ecommerce/vendure/issues/2840
|
|
|
|
|
|
|
+ // https://github.com/vendurehq/vendure/issues/2840
|
|
|
it('updating custom field relation on ProductVariant does not delete primitive values', async () => {
|
|
it('updating custom field relation on ProductVariant does not delete primitive values', async () => {
|
|
|
const { updateProductVariants } = await adminClient.query(gql`
|
|
const { updateProductVariants } = await adminClient.query(gql`
|
|
|
mutation {
|
|
mutation {
|
|
@@ -924,7 +924,7 @@ describe('Custom field relations', () => {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
describe('issue 1664', () => {
|
|
describe('issue 1664', () => {
|
|
|
- // https://github.com/vendure-ecommerce/vendure/issues/1664
|
|
|
|
|
|
|
+ // https://github.com/vendurehq/vendure/issues/1664
|
|
|
it('successfully gets product by id with eager-loading custom field relation', async () => {
|
|
it('successfully gets product by id with eager-loading custom field relation', async () => {
|
|
|
const { product } = await shopClient.query(gql`
|
|
const { product } = await shopClient.query(gql`
|
|
|
query {
|
|
query {
|
|
@@ -944,7 +944,7 @@ describe('Custom field relations', () => {
|
|
|
expect(product).toBeDefined();
|
|
expect(product).toBeDefined();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // https://github.com/vendure-ecommerce/vendure/issues/1664
|
|
|
|
|
|
|
+ // https://github.com/vendurehq/vendure/issues/1664
|
|
|
it('successfully gets product by id with nested eager-loading custom field relation', async () => {
|
|
it('successfully gets product by id with nested eager-loading custom field relation', async () => {
|
|
|
const { customer } = await adminClient.query(gql`
|
|
const { customer } = await adminClient.query(gql`
|
|
|
query {
|
|
query {
|
|
@@ -968,7 +968,7 @@ describe('Custom field relations', () => {
|
|
|
expect(customer).toBeDefined();
|
|
expect(customer).toBeDefined();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // https://github.com/vendure-ecommerce/vendure/issues/1664
|
|
|
|
|
|
|
+ // https://github.com/vendurehq/vendure/issues/1664
|
|
|
it('successfully gets product.variants with nested custom field relation', async () => {
|
|
it('successfully gets product.variants with nested custom field relation', async () => {
|
|
|
await adminClient.query(gql`
|
|
await adminClient.query(gql`
|
|
|
mutation {
|
|
mutation {
|
|
@@ -1090,7 +1090,7 @@ describe('Custom field relations', () => {
|
|
|
assertCustomFieldIds(updateProductOptionGroup.customFields, 'T_2', ['T_3', 'T_4']);
|
|
assertCustomFieldIds(updateProductOptionGroup.customFields, 'T_2', ['T_3', 'T_4']);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // https://github.com/vendure-ecommerce/vendure/issues/2840
|
|
|
|
|
|
|
+ // https://github.com/vendurehq/vendure/issues/2840
|
|
|
it('updating custom field relation on ProductOptionGroup does not delete primitive values', async () => {
|
|
it('updating custom field relation on ProductOptionGroup does not delete primitive values', async () => {
|
|
|
const { updateProductOptionGroup } = await adminClient.query(gql`
|
|
const { updateProductOptionGroup } = await adminClient.query(gql`
|
|
|
mutation {
|
|
mutation {
|
|
@@ -1148,7 +1148,7 @@ describe('Custom field relations', () => {
|
|
|
assertCustomFieldIds(updateProductOption.customFields, 'T_2', ['T_3', 'T_4']);
|
|
assertCustomFieldIds(updateProductOption.customFields, 'T_2', ['T_3', 'T_4']);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // https://github.com/vendure-ecommerce/vendure/issues/2840
|
|
|
|
|
|
|
+ // https://github.com/vendurehq/vendure/issues/2840
|
|
|
it('updating custom field relation on ProductOption does not delete primitive values', async () => {
|
|
it('updating custom field relation on ProductOption does not delete primitive values', async () => {
|
|
|
const { updateProductOption } = await adminClient.query(gql`
|
|
const { updateProductOption } = await adminClient.query(gql`
|
|
|
mutation {
|
|
mutation {
|
|
@@ -1223,7 +1223,7 @@ describe('Custom field relations', () => {
|
|
|
assertCustomFieldIds(updateShippingMethod.customFields, 'T_2', ['T_3', 'T_4']);
|
|
assertCustomFieldIds(updateShippingMethod.customFields, 'T_2', ['T_3', 'T_4']);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // https://github.com/vendure-ecommerce/vendure/issues/2840
|
|
|
|
|
|
|
+ // https://github.com/vendurehq/vendure/issues/2840
|
|
|
it('updating custom field relation on ShippingMethod does not delete primitive values', async () => {
|
|
it('updating custom field relation on ShippingMethod does not delete primitive values', async () => {
|
|
|
const { updateShippingMethod } = await adminClient.query(gql`
|
|
const { updateShippingMethod } = await adminClient.query(gql`
|
|
|
mutation {
|
|
mutation {
|
|
@@ -1306,7 +1306,7 @@ describe('Custom field relations', () => {
|
|
|
assertCustomFieldIds(updatePaymentMethod.customFields, 'T_2', ['T_3', 'T_4']);
|
|
assertCustomFieldIds(updatePaymentMethod.customFields, 'T_2', ['T_3', 'T_4']);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // https://github.com/vendure-ecommerce/vendure/issues/2840
|
|
|
|
|
|
|
+ // https://github.com/vendurehq/vendure/issues/2840
|
|
|
it('updating custom field relation on PaymentMethod does not delete primitive values', async () => {
|
|
it('updating custom field relation on PaymentMethod does not delete primitive values', async () => {
|
|
|
const { updatePaymentMethod } = await adminClient.query(gql`
|
|
const { updatePaymentMethod } = await adminClient.query(gql`
|
|
|
mutation {
|
|
mutation {
|
|
@@ -1372,7 +1372,7 @@ describe('Custom field relations', () => {
|
|
|
expect(asset.customFields.multi.length).toEqual(2);
|
|
expect(asset.customFields.multi.length).toEqual(2);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // https://github.com/vendure-ecommerce/vendure/issues/1636
|
|
|
|
|
|
|
+ // https://github.com/vendurehq/vendure/issues/1636
|
|
|
it('calling TransactionalConnection.findOneInChannel() returns custom field relations', async () => {
|
|
it('calling TransactionalConnection.findOneInChannel() returns custom field relations', async () => {
|
|
|
TestPlugin1636_1664.testResolverSpy.mockReset();
|
|
TestPlugin1636_1664.testResolverSpy.mockReset();
|
|
|
await shopClient.query(gql`
|
|
await shopClient.query(gql`
|