feat: added pacific franc currency (#13086)
This commit is contained in:
@@ -22,7 +22,7 @@ medusaIntegrationTestRunner({
|
||||
)
|
||||
|
||||
expect(response.status).toEqual(200)
|
||||
expect(response.data.currencies).toHaveLength(121)
|
||||
expect(response.data.currencies).toHaveLength(122)
|
||||
expect(response.data.currencies).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
|
||||
@@ -1062,6 +1062,15 @@ export const defaultCurrencies: Record<string, Currency> = {
|
||||
code: "XOF",
|
||||
name_plural: "CFA francs BCEAO",
|
||||
},
|
||||
XPF: {
|
||||
symbol: "₣",
|
||||
name: "CFP Franc",
|
||||
symbol_native: "₣",
|
||||
decimal_digits: 0,
|
||||
rounding: 0,
|
||||
code: "XPF",
|
||||
name_plural: "CFP francs"
|
||||
},
|
||||
YER: {
|
||||
symbol: "YR",
|
||||
name: "Yemeni Rial",
|
||||
|
||||
+3
-3
@@ -86,7 +86,7 @@ moduleIntegrationTestRunner<ICurrencyModuleService>({
|
||||
const [currenciesResult, count] =
|
||||
await service.listAndCountCurrencies({}, {})
|
||||
|
||||
expect(count).toEqual(121)
|
||||
expect(count).toEqual(122)
|
||||
expect(currenciesResult).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
@@ -123,7 +123,7 @@ moduleIntegrationTestRunner<ICurrencyModuleService>({
|
||||
const [currenciesResult, count] =
|
||||
await service.listAndCountCurrencies({}, { skip: 5, take: 1 })
|
||||
|
||||
expect(count).toEqual(121)
|
||||
expect(count).toEqual(122)
|
||||
expect(currenciesResult).toEqual([
|
||||
expect.objectContaining({
|
||||
code: "aud",
|
||||
@@ -144,7 +144,7 @@ moduleIntegrationTestRunner<ICurrencyModuleService>({
|
||||
|
||||
const serialized = JSON.parse(JSON.stringify(currenciesResult))
|
||||
|
||||
expect(count).toEqual(121)
|
||||
expect(count).toEqual(122)
|
||||
expect(serialized).toEqual([
|
||||
{
|
||||
code: "aed",
|
||||
|
||||
Reference in New Issue
Block a user