chore: joiner config entity property (#9084)
This commit is contained in:
committed by
GitHub
parent
28dc8d4d17
commit
fdd0543011
@@ -91,7 +91,7 @@ medusaIntegrationTestRunner({
|
||||
|
||||
expect(response.status).toEqual(200)
|
||||
|
||||
const [address] = await customerModuleService.listAddresses({
|
||||
const [address] = await customerModuleService.listCustomerAddresses({
|
||||
customer_id: customer.id,
|
||||
is_default_shipping: true,
|
||||
})
|
||||
@@ -126,7 +126,7 @@ medusaIntegrationTestRunner({
|
||||
|
||||
expect(response.status).toEqual(200)
|
||||
|
||||
const [address] = await customerModuleService.listAddresses({
|
||||
const [address] = await customerModuleService.listCustomerAddresses({
|
||||
customer_id: customer.id,
|
||||
is_default_billing: true,
|
||||
})
|
||||
|
||||
@@ -34,7 +34,7 @@ medusaIntegrationTestRunner({
|
||||
last_name: "Doe",
|
||||
})
|
||||
|
||||
const address = await customerModuleService.createAddresses({
|
||||
const address = await customerModuleService.createCustomerAddresses({
|
||||
customer_id: customer.id,
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
|
||||
@@ -34,7 +34,7 @@ medusaIntegrationTestRunner({
|
||||
last_name: "Doe",
|
||||
})
|
||||
|
||||
const address = await customerModuleService.createAddresses({
|
||||
const address = await customerModuleService.createCustomerAddresses({
|
||||
customer_id: customer.id,
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
@@ -66,21 +66,23 @@ medusaIntegrationTestRunner({
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
})
|
||||
const [, address] = await customerModuleService.createAddresses([
|
||||
{
|
||||
customer_id: customer.id,
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
address_1: "Test street 1",
|
||||
is_default_shipping: true,
|
||||
},
|
||||
{
|
||||
customer_id: customer.id,
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
address_1: "Test street 2",
|
||||
},
|
||||
])
|
||||
const [, address] = await customerModuleService.createCustomerAddresses(
|
||||
[
|
||||
{
|
||||
customer_id: customer.id,
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
address_1: "Test street 1",
|
||||
is_default_shipping: true,
|
||||
},
|
||||
{
|
||||
customer_id: customer.id,
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
address_1: "Test street 2",
|
||||
},
|
||||
]
|
||||
)
|
||||
|
||||
const response = await api.post(
|
||||
`/admin/customers/${customer.id}/addresses/${address.id}`,
|
||||
@@ -93,10 +95,11 @@ medusaIntegrationTestRunner({
|
||||
|
||||
expect(response.status).toEqual(200)
|
||||
|
||||
const [defaultAddress] = await customerModuleService.listAddresses({
|
||||
customer_id: customer.id,
|
||||
is_default_shipping: true,
|
||||
})
|
||||
const [defaultAddress] =
|
||||
await customerModuleService.listCustomerAddresses({
|
||||
customer_id: customer.id,
|
||||
is_default_shipping: true,
|
||||
})
|
||||
|
||||
expect(defaultAddress.first_name).toEqual("jane")
|
||||
expect(defaultAddress.address_1).toEqual("Test street 2")
|
||||
@@ -108,21 +111,23 @@ medusaIntegrationTestRunner({
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
})
|
||||
const [, address] = await customerModuleService.createAddresses([
|
||||
{
|
||||
customer_id: customer.id,
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
address_1: "Test street 1",
|
||||
is_default_billing: true,
|
||||
},
|
||||
{
|
||||
customer_id: customer.id,
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
address_1: "Test street 2",
|
||||
},
|
||||
])
|
||||
const [, address] = await customerModuleService.createCustomerAddresses(
|
||||
[
|
||||
{
|
||||
customer_id: customer.id,
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
address_1: "Test street 1",
|
||||
is_default_billing: true,
|
||||
},
|
||||
{
|
||||
customer_id: customer.id,
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
address_1: "Test street 2",
|
||||
},
|
||||
]
|
||||
)
|
||||
|
||||
const response = await api.post(
|
||||
`/admin/customers/${customer.id}/addresses/${address.id}`,
|
||||
@@ -135,10 +140,11 @@ medusaIntegrationTestRunner({
|
||||
|
||||
expect(response.status).toEqual(200)
|
||||
|
||||
const [defaultAddress] = await customerModuleService.listAddresses({
|
||||
customer_id: customer.id,
|
||||
is_default_billing: true,
|
||||
})
|
||||
const [defaultAddress] =
|
||||
await customerModuleService.listCustomerAddresses({
|
||||
customer_id: customer.id,
|
||||
is_default_billing: true,
|
||||
})
|
||||
|
||||
expect(defaultAddress.first_name).toEqual("jane")
|
||||
expect(defaultAddress.address_1).toEqual("Test street 2")
|
||||
|
||||
@@ -26,7 +26,7 @@ medusaIntegrationTestRunner({
|
||||
appContainer
|
||||
)
|
||||
|
||||
const address = await customerModuleService.createAddresses({
|
||||
const address = await customerModuleService.createCustomerAddresses({
|
||||
customer_id: customer.id,
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
@@ -57,7 +57,7 @@ medusaIntegrationTestRunner({
|
||||
first_name: "Jane",
|
||||
last_name: "Doe",
|
||||
})
|
||||
const address = await customerModuleService.createAddresses({
|
||||
const address = await customerModuleService.createCustomerAddresses({
|
||||
customer_id: otherCustomer.id,
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
|
||||
@@ -26,7 +26,7 @@ medusaIntegrationTestRunner({
|
||||
appContainer
|
||||
)
|
||||
|
||||
await customerModuleService.createAddresses([
|
||||
await customerModuleService.createCustomerAddresses([
|
||||
{
|
||||
first_name: "Test",
|
||||
last_name: "Test",
|
||||
|
||||
@@ -26,7 +26,7 @@ medusaIntegrationTestRunner({
|
||||
appContainer
|
||||
)
|
||||
|
||||
const address = await customerModuleService.createAddresses({
|
||||
const address = await customerModuleService.createCustomerAddresses({
|
||||
customer_id: customer.id,
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
@@ -59,7 +59,7 @@ medusaIntegrationTestRunner({
|
||||
last_name: "Doe",
|
||||
})
|
||||
|
||||
const address = await customerModuleService.createAddresses({
|
||||
const address = await customerModuleService.createCustomerAddresses({
|
||||
customer_id: otherCustomer.id,
|
||||
first_name: "John",
|
||||
last_name: "Doe",
|
||||
|
||||
Reference in New Issue
Block a user