feat(dashboard,currency): added Tajikistani somoni currency (#13178)
* added Tajikistani somoni currency * updated currencies.ts * changeset * updated changeset --------- Co-authored-by: William Bouchard <46496014+willbouch@users.noreply.github.com>
This commit is contained in:
1 parent
d724f079a8
commit
1b681a79da
5 files changed
+26
-4
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/currency": patch
|
||||||
|
"@medusajs/dashboard": patch
|
||||||
|
"@medusajs/utils": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
feat(dashboard,currency): added Tajikistani somoni currency
|
||||||
@@ -22,7 +22,7 @@ medusaIntegrationTestRunner({
|
|||||||
)
|
)
|
||||||
|
|
||||||
expect(response.status).toEqual(200)
|
expect(response.status).toEqual(200)
|
||||||
expect(response.data.currencies).toHaveLength(122)
|
expect(response.data.currencies).toHaveLength(123)
|
||||||
expect(response.data.currencies).toEqual(
|
expect(response.data.currencies).toEqual(
|
||||||
expect.arrayContaining([
|
expect.arrayContaining([
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
|
|||||||
@@ -631,6 +631,12 @@ export const currencies: Record<string, CurrencyInfo> = {
|
|||||||
symbol_native: "T$",
|
symbol_native: "T$",
|
||||||
decimal_digits: 2,
|
decimal_digits: 2,
|
||||||
},
|
},
|
||||||
|
TJS: {
|
||||||
|
code: "TJS",
|
||||||
|
name: "Tajikistani Somoni",
|
||||||
|
symbol_native: "с.",
|
||||||
|
decimal_digits: 2,
|
||||||
|
},
|
||||||
TRY: {
|
TRY: {
|
||||||
code: "TRY",
|
code: "TRY",
|
||||||
name: "Turkish Lira",
|
name: "Turkish Lira",
|
||||||
|
|||||||
@@ -954,6 +954,15 @@ export const defaultCurrencies: Record<string, Currency> = {
|
|||||||
code: "TOP",
|
code: "TOP",
|
||||||
name_plural: "Tongan paʻanga",
|
name_plural: "Tongan paʻanga",
|
||||||
},
|
},
|
||||||
|
TJS: {
|
||||||
|
symbol: "TJS",
|
||||||
|
name: "Tajikistani Somoni",
|
||||||
|
symbol_native: "с.",
|
||||||
|
decimal_digits: 2,
|
||||||
|
rounding: 0,
|
||||||
|
code: "TJS",
|
||||||
|
name_plural: "Tajikistani somonis",
|
||||||
|
},
|
||||||
TRY: {
|
TRY: {
|
||||||
symbol: "₺",
|
symbol: "₺",
|
||||||
name: "Turkish Lira",
|
name: "Turkish Lira",
|
||||||
|
|||||||
+3
-3
@@ -86,7 +86,7 @@ moduleIntegrationTestRunner<ICurrencyModuleService>({
|
|||||||
const [currenciesResult, count] =
|
const [currenciesResult, count] =
|
||||||
await service.listAndCountCurrencies({}, {})
|
await service.listAndCountCurrencies({}, {})
|
||||||
|
|
||||||
expect(count).toEqual(122)
|
expect(count).toEqual(123)
|
||||||
expect(currenciesResult).toEqual(
|
expect(currenciesResult).toEqual(
|
||||||
expect.arrayContaining([
|
expect.arrayContaining([
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
@@ -123,7 +123,7 @@ moduleIntegrationTestRunner<ICurrencyModuleService>({
|
|||||||
const [currenciesResult, count] =
|
const [currenciesResult, count] =
|
||||||
await service.listAndCountCurrencies({}, { skip: 5, take: 1 })
|
await service.listAndCountCurrencies({}, { skip: 5, take: 1 })
|
||||||
|
|
||||||
expect(count).toEqual(122)
|
expect(count).toEqual(123)
|
||||||
expect(currenciesResult).toEqual([
|
expect(currenciesResult).toEqual([
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
code: "aud",
|
code: "aud",
|
||||||
@@ -144,7 +144,7 @@ moduleIntegrationTestRunner<ICurrencyModuleService>({
|
|||||||
|
|
||||||
const serialized = JSON.parse(JSON.stringify(currenciesResult))
|
const serialized = JSON.parse(JSON.stringify(currenciesResult))
|
||||||
|
|
||||||
expect(count).toEqual(122)
|
expect(count).toEqual(123)
|
||||||
expect(serialized).toEqual([
|
expect(serialized).toEqual([
|
||||||
{
|
{
|
||||||
code: "aed",
|
code: "aed",
|
||||||
|
|||||||
Reference in new issue
Block a user