|
|
@@ -42,6 +42,10 @@ describe('getCurrencySymbol', () => {
|
|
|
expect(getCurrencySymbol('EGP')).toBe('E£');
|
|
|
});
|
|
|
|
|
|
+ it('returns RD$ for DOP', () => {
|
|
|
+ expect(getCurrencySymbol('DOP')).toBe('RD$');
|
|
|
+ });
|
|
|
+
|
|
|
it('returns the code itself for unknown currencies', () => {
|
|
|
expect(getCurrencySymbol('XYZ')).toBe('XYZ');
|
|
|
});
|
|
|
@@ -61,6 +65,10 @@ describe('SUPPORTED_CURRENCIES', () => {
|
|
|
expect(SUPPORTED_CURRENCIES.find((c) => c.code === 'EGP')).toBeDefined();
|
|
|
});
|
|
|
|
|
|
+ it('contains DOP', () => {
|
|
|
+ expect(SUPPORTED_CURRENCIES.find((c) => c.code === 'DOP')).toEqual({ code: 'DOP', label: 'DOP (RD$)' });
|
|
|
+ });
|
|
|
+
|
|
|
it('contains MYR', () => {
|
|
|
expect(SUPPORTED_CURRENCIES.find((c) => c.code === 'MYR')).toBeDefined();
|
|
|
});
|
|
|
@@ -77,7 +85,7 @@ describe('SUPPORTED_CURRENCIES', () => {
|
|
|
expect(SUPPORTED_CURRENCIES.find((c) => c.code === 'PHP')).toEqual({ code: 'PHP', label: 'PHP (₱)' });
|
|
|
});
|
|
|
|
|
|
- it('has 33 entries', () => {
|
|
|
- expect(SUPPORTED_CURRENCIES).toHaveLength(33);
|
|
|
+ it('has 34 entries', () => {
|
|
|
+ expect(SUPPORTED_CURRENCIES).toHaveLength(34);
|
|
|
});
|
|
|
});
|