feat: Add missing endpoints and normalize customer and currency endpoints for storefront (#7160)

This commit is contained in:
Stevche Radevski
2024-04-29 16:15:05 +02:00
committed by GitHub
parent 08a9297f76
commit 32c2a9d76b
24 changed files with 368 additions and 423 deletions
@@ -37,7 +37,7 @@ medusaIntegrationTestRunner({
)
expect(response.status).toEqual(200)
expect(response.data.address).toEqual(
expect(response.data.customer.addresses[0]).toEqual(
expect.objectContaining({
id: expect.any(String),
first_name: "John",
@@ -1,7 +1,7 @@
import { ICustomerModuleService } from "@medusajs/types"
import { ModuleRegistrationName } from "@medusajs/modules-sdk"
import { createAuthenticatedCustomer } from "../../../helpers/create-authenticated-customer"
import {medusaIntegrationTestRunner} from "medusa-test-utils";
import { medusaIntegrationTestRunner } from "medusa-test-utils"
const env = { MEDUSA_FF_MEDUSA_V2: true }
@@ -42,7 +42,7 @@ medusaIntegrationTestRunner({
)
expect(response.status).toEqual(200)
expect(response.data.address).toEqual(
expect(response.data.customer.addresses[0]).toEqual(
expect.objectContaining({
id: address.id,
first_name: "Jane",