diff options
| author | Matt Mayer <[email protected]> | 2023-03-01 01:13:58 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-28 19:13:58 +0100 |
| commit | e6f949b73e781d7e3f1fb4adf8f87d66b4aa29a1 (patch) | |
| tree | a9155219648959f6b481384387607cdcb4fb9aa3 | |
| parent | 59157a429a1bcde3f78bd9009f6de02358365ba2 (diff) | |
| download | faker-e6f949b73e781d7e3f1fb4adf8f87d66b4aa29a1.tar.xz faker-e6f949b73e781d7e3f1fb4adf8f87d66b4aa29a1.zip | |
fix(currency): modernise currency list for 2023 (#1880)
| -rw-r--r-- | src/locales/en/finance/currency.ts | 94 | ||||
| -rw-r--r-- | test/__snapshots__/finance.spec.ts.snap | 38 | ||||
| -rw-r--r-- | test/__snapshots__/random.spec.ts.snap | 2 |
3 files changed, 27 insertions, 107 deletions
diff --git a/src/locales/en/finance/currency.ts b/src/locales/en/finance/currency.ts index d5090c8f..7cccf4fe 100644 --- a/src/locales/en/finance/currency.ts +++ b/src/locales/en/finance/currency.ts @@ -160,11 +160,6 @@ export default [ symbol: '₱', }, { - name: 'Cuban Peso Convertible', - code: 'CUC', - symbol: '$', - }, - { name: 'Cape Verde Escudo', code: 'CVE', symbol: '', @@ -195,11 +190,6 @@ export default [ symbol: '', }, { - name: 'Kroon', - code: 'EEK', - symbol: '', - }, - { name: 'Egyptian Pound', code: 'EGP', symbol: '£', @@ -280,11 +270,6 @@ export default [ symbol: 'L', }, { - name: 'Croatian Kuna', - code: 'HRK', - symbol: 'kn', - }, - { name: 'Gourde', code: 'HTG', symbol: '', @@ -410,16 +395,6 @@ export default [ symbol: '$', }, { - name: 'Lithuanian Litas', - code: 'LTL', - symbol: 'Lt', - }, - { - name: 'Latvian Lats', - code: 'LVL', - symbol: 'Ls', - }, - { name: 'Libyan Dinar', code: 'LYD', symbol: '', @@ -461,7 +436,7 @@ export default [ }, { name: 'Ouguiya', - code: 'MRO', + code: 'MRU', symbol: '', }, { @@ -621,7 +596,7 @@ export default [ }, { name: 'Leone', - code: 'SLL', + code: 'SLE', symbol: '', }, { @@ -635,16 +610,16 @@ export default [ symbol: '$', }, { + name: 'South Sudanese pound', + code: 'SSP', + symbol: '', + }, + { name: 'Dobra', code: 'STN', symbol: 'Db', }, { - name: 'El Salvador Colon', - code: 'SVC', - symbol: '₡', - }, - { name: 'Syrian Pound', code: 'SYP', symbol: '£', @@ -750,76 +725,21 @@ export default [ symbol: '', }, { - name: 'Silver', - code: 'XAG', - symbol: '', - }, - { - name: 'Gold', - code: 'XAU', - symbol: '', - }, - { - name: 'Bond Markets Units European Composite Unit (EURCO)', - code: 'XBA', - symbol: '', - }, - { - name: 'European Monetary Unit (E.M.U.-6)', - code: 'XBB', - symbol: '', - }, - { - name: 'European Unit of Account 9(E.U.A.-9)', - code: 'XBC', - symbol: '', - }, - { - name: 'European Unit of Account 17(E.U.A.-17)', - code: 'XBD', - symbol: '', - }, - { name: 'East Caribbean Dollar', code: 'XCD', symbol: '$', }, { - name: 'SDR', - code: 'XDR', - symbol: '', - }, - { - name: 'UIC-Franc', - code: 'XFU', - symbol: '', - }, - { name: 'CFA Franc BCEAO', code: 'XOF', symbol: '', }, { - name: 'Palladium', - code: 'XPD', - symbol: '', - }, - { name: 'CFP Franc', code: 'XPF', symbol: '', }, { - name: 'Platinum', - code: 'XPT', - symbol: '', - }, - { - name: 'Codes specifically reserved for testing purposes', - code: 'XTS', - symbol: '', - }, - { name: 'Yemeni Rial', code: 'YER', symbol: '﷼', diff --git a/test/__snapshots__/finance.spec.ts.snap b/test/__snapshots__/finance.spec.ts.snap index 537dc2b6..a6c7182c 100644 --- a/test/__snapshots__/finance.spec.ts.snap +++ b/test/__snapshots__/finance.spec.ts.snap @@ -46,17 +46,17 @@ exports[`finance > 42 > creditCardNumber > with issuer option 1`] = `"4791775514 exports[`finance > 42 > currency 1`] = ` { - "code": "IQD", - "name": "Iraqi Dinar", - "symbol": "", + "code": "ILS", + "name": "New Israeli Sheqel", + "symbol": "₪", } `; -exports[`finance > 42 > currencyCode 1`] = `"IQD"`; +exports[`finance > 42 > currencyCode 1`] = `"ILS"`; -exports[`finance > 42 > currencyName 1`] = `"Iraqi Dinar"`; +exports[`finance > 42 > currencyName 1`] = `"New Israeli Sheqel"`; -exports[`finance > 42 > currencySymbol 1`] = `"₱"`; +exports[`finance > 42 > currencySymbol 1`] = `"₪"`; exports[`finance > 42 > ethereumAddress 1`] = `"0x8be4abdd39321ad7d3fe01ffce404f4d6db0906b"`; @@ -96,7 +96,7 @@ exports[`finance > 42 > pin > with length option 1`] = `"3791775514"`; exports[`finance > 42 > routingNumber 1`] = `"379177554"`; -exports[`finance > 42 > transactionDescription 1`] = `"invoice transaction at Wiegand, Deckow and Reynolds using card ending with ***(...8361) for SDG 374.54 in account ***55141004"`; +exports[`finance > 42 > transactionDescription 1`] = `"invoice transaction at Wiegand, Deckow and Reynolds using card ending with ***(...8361) for RSD 374.54 in account ***55141004"`; exports[`finance > 42 > transactionType 1`] = `"withdrawal"`; @@ -146,17 +146,17 @@ exports[`finance > 1211 > creditCardNumber > with issuer option 1`] = `"4487-219 exports[`finance > 1211 > currency 1`] = ` { - "code": "XDR", - "name": "SDR", + "code": "VUV", + "name": "Vatu", "symbol": "", } `; -exports[`finance > 1211 > currencyCode 1`] = `"XDR"`; +exports[`finance > 1211 > currencyCode 1`] = `"VUV"`; -exports[`finance > 1211 > currencyName 1`] = `"SDR"`; +exports[`finance > 1211 > currencyName 1`] = `"Vatu"`; -exports[`finance > 1211 > currencySymbol 1`] = `"₭"`; +exports[`finance > 1211 > currencySymbol 1`] = `"₩"`; exports[`finance > 1211 > ethereumAddress 1`] = `"0xeadb42f0e3f4a973fab0aeefce96dfcf49cd438d"`; @@ -196,7 +196,7 @@ exports[`finance > 1211 > pin > with length option 1`] = `"9487219061"`; exports[`finance > 1211 > routingNumber 1`] = `"948721904"`; -exports[`finance > 1211 > transactionDescription 1`] = `"deposit transaction at Trantow - Satterfield using card ending with ***(...4316) for STN 928.52 in account ***19061627"`; +exports[`finance > 1211 > transactionDescription 1`] = `"deposit transaction at Trantow - Satterfield using card ending with ***(...4316) for SDG 928.52 in account ***19061627"`; exports[`finance > 1211 > transactionType 1`] = `"invoice"`; @@ -246,15 +246,15 @@ exports[`finance > 1337 > creditCardNumber > with issuer option 1`] = `"45122540 exports[`finance > 1337 > currency 1`] = ` { - "code": "FJD", - "name": "Fiji Dollar", - "symbol": "$", + "code": "ETB", + "name": "Ethiopian Birr", + "symbol": "", } `; -exports[`finance > 1337 > currencyCode 1`] = `"FJD"`; +exports[`finance > 1337 > currencyCode 1`] = `"ETB"`; -exports[`finance > 1337 > currencyName 1`] = `"Fiji Dollar"`; +exports[`finance > 1337 > currencyName 1`] = `"Ethiopian Birr"`; exports[`finance > 1337 > currencySymbol 1`] = `"$"`; @@ -296,6 +296,6 @@ exports[`finance > 1337 > pin > with length option 1`] = `"2512254032"`; exports[`finance > 1337 > routingNumber 1`] = `"251225401"`; -exports[`finance > 1337 > transactionDescription 1`] = `"withdrawal transaction at Cronin - Effertz using card ending with ***(...3927) for GTQ 262.02 in account ***54032552"`; +exports[`finance > 1337 > transactionDescription 1`] = `"withdrawal transaction at Cronin - Effertz using card ending with ***(...3927) for GIP 262.02 in account ***54032552"`; exports[`finance > 1337 > transactionType 1`] = `"withdrawal"`; diff --git a/test/__snapshots__/random.spec.ts.snap b/test/__snapshots__/random.spec.ts.snap index b442d3e5..2285503e 100644 --- a/test/__snapshots__/random.spec.ts.snap +++ b/test/__snapshots__/random.spec.ts.snap @@ -42,7 +42,7 @@ exports[`random > 1211 > words > noArgs 1`] = `"invoice Cyclocross assail"`; exports[`random > 1211 > words > with length 1`] = `"gah strictly Rustic assail Manager"`; -exports[`random > 1211 > words > with length range 1`] = `"invoice Cyclocross assail Manager New"`; +exports[`random > 1211 > words > with length range 1`] = `"invoice Cyclocross assail Manager Gourde"`; exports[`random > 1337 > alpha > noArgs 1`] = `"n"`; |
