diff --git a/integration-tests/http/__tests__/currency/admin/currency.spec.ts b/integration-tests/http/__tests__/currency/admin/currency.spec.ts index bb5d8a9c1b..d1f2628c59 100644 --- a/integration-tests/http/__tests__/currency/admin/currency.spec.ts +++ b/integration-tests/http/__tests__/currency/admin/currency.spec.ts @@ -22,7 +22,7 @@ medusaIntegrationTestRunner({ ) expect(response.status).toEqual(200) - expect(response.data.currencies).toHaveLength(120) + expect(response.data.currencies).toHaveLength(121) expect(response.data.currencies).toEqual( expect.arrayContaining([ expect.objectContaining({ diff --git a/packages/core/utils/src/defaults/currencies.ts b/packages/core/utils/src/defaults/currencies.ts index 2240be74f6..08b350dfb4 100644 --- a/packages/core/utils/src/defaults/currencies.ts +++ b/packages/core/utils/src/defaults/currencies.ts @@ -675,6 +675,15 @@ export const defaultCurrencies: Record = { code: "MUR", name_plural: "Mauritian rupees", }, + MWK: { + symbol: "K", + name: "Malawian Kwacha", + symbol_native: "K", + decimal_digits: 2, + rounding: 0, + code: "MWK", + name_plural: "Malawian Kwachas", + }, MXN: { symbol: "MX$", name: "Mexican Peso", diff --git a/packages/modules/currency/integration-tests/__tests__/currency-module-service.spec.ts b/packages/modules/currency/integration-tests/__tests__/currency-module-service.spec.ts index 12f51c4247..3689f904c0 100644 --- a/packages/modules/currency/integration-tests/__tests__/currency-module-service.spec.ts +++ b/packages/modules/currency/integration-tests/__tests__/currency-module-service.spec.ts @@ -86,7 +86,7 @@ moduleIntegrationTestRunner({ const [currenciesResult, count] = await service.listAndCountCurrencies({}, {}) - expect(count).toEqual(120) + expect(count).toEqual(121) expect(currenciesResult).toEqual( expect.arrayContaining([ expect.objectContaining({ @@ -123,7 +123,7 @@ moduleIntegrationTestRunner({ const [currenciesResult, count] = await service.listAndCountCurrencies({}, { skip: 5, take: 1 }) - expect(count).toEqual(120) + expect(count).toEqual(121) expect(currenciesResult).toEqual([ expect.objectContaining({ code: "aud", @@ -144,7 +144,7 @@ moduleIntegrationTestRunner({ const serialized = JSON.parse(JSON.stringify(currenciesResult)) - expect(count).toEqual(120) + expect(count).toEqual(121) expect(serialized).toEqual([ { code: "aed",