Skip to content

Commit 14eea65

Browse files
mountinycursoragent
andcommitted
Fix cspell: replace USDX with USDD in test fixtures
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 67b9049 commit 14eea65

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/unit/CurrencyUtilsTest.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ describe('CurrencyUtils', () => {
199199
['eur', false],
200200
[' USD', false],
201201
['US', false],
202-
['USDX', false],
202+
['USDD', false],
203203
['US1', false],
204204
[undefined, false],
205205
[null, false],
@@ -218,13 +218,13 @@ describe('CurrencyUtils', () => {
218218
expect(CurrencyUtils.sanitizeCurrencyCode('eur')).toBe('EUR');
219219
});
220220

221-
test.each(['', 'XX', 'USDX', 'US1', '???'])('falls back to USD for malformed input %p', (input) => {
221+
test.each(['', 'XX', 'USDD', 'US1', '???'])('falls back to USD for malformed input %p', (input) => {
222222
expect(CurrencyUtils.sanitizeCurrencyCode(input)).toBe(CONST.CURRENCY.USD);
223223
});
224224
});
225225

226226
describe('convertToDisplayString with malformed currency', () => {
227-
test.each(['', 'XX', 'USDX', '???'])('does not throw and falls back to USD formatting for %p', (input) => {
227+
test.each(['', 'XX', 'USDD', '???'])('does not throw and falls back to USD formatting for %p', (input) => {
228228
expect(() => CurrencyUtils.convertToDisplayString(2500, input)).not.toThrow();
229229
expect(CurrencyUtils.convertToDisplayString(2500, input)).toBe('$25.00');
230230
});
@@ -235,7 +235,7 @@ describe('CurrencyUtils', () => {
235235
});
236236

237237
describe('getLocalizedCurrencySymbol with malformed currency', () => {
238-
test.each(['', 'XX', 'USDX'])('returns the USD symbol without throwing for %p', (input) => {
238+
test.each(['', 'XX', 'USDD'])('returns the USD symbol without throwing for %p', (input) => {
239239
expect(() => CurrencyUtils.getLocalizedCurrencySymbol(CONST.LOCALES.EN, input)).not.toThrow();
240240
expect(CurrencyUtils.getLocalizedCurrencySymbol(CONST.LOCALES.EN, input)).toBe(CurrencyUtils.getLocalizedCurrencySymbol(CONST.LOCALES.EN, CONST.CURRENCY.USD));
241241
});

0 commit comments

Comments
 (0)