chore: update tests for new en-PH Intl standards USD + JPY
This commit is contained in:
parent
a96c9692af
commit
a0fefee88b
1 changed files with 2 additions and 6 deletions
|
|
@ -294,17 +294,13 @@ Please specify .groupSeparator / .decimalSeparator on the formatOptions object t
|
||||||
|
|
||||||
describe('en-PH', () => {
|
describe('en-PH', () => {
|
||||||
it('supports basics', () => {
|
it('supports basics', () => {
|
||||||
// TODO: This test is broken on Firefox and Chromium, check and fix when the intl change is permanent
|
|
||||||
if (!isSafari) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
localize.locale = 'en-PH';
|
localize.locale = 'en-PH';
|
||||||
expect(formatNumber(123456.789, currencyCode('EUR'))).to.equal('EUR 123,456.79');
|
expect(formatNumber(123456.789, currencyCode('EUR'))).to.equal('EUR 123,456.79');
|
||||||
expect(formatNumber(123456.789, currencyCode('USD'))).to.equal('USD 123,456.79');
|
expect(formatNumber(123456.789, currencyCode('USD'))).to.equal('USD 123,456.79');
|
||||||
expect(formatNumber(123456.789, currencyCode('JPY'))).to.equal('JPY 123,457');
|
expect(formatNumber(123456.789, currencyCode('JPY'))).to.equal('JPY 123,457');
|
||||||
expect(formatNumber(123456.789, currencySymbol('EUR'))).to.equal('€123,456.79');
|
expect(formatNumber(123456.789, currencySymbol('EUR'))).to.equal('€123,456.79');
|
||||||
expect(formatNumber(123456.789, currencySymbol('USD'))).to.equal('US$123,456.79');
|
expect(formatNumber(123456.789, currencySymbol('USD'))).to.equal('$123,456.79');
|
||||||
expect(formatNumber(123456.789, currencySymbol('JPY'))).to.equal('JP¥123,457');
|
expect(formatNumber(123456.789, currencySymbol('JPY'))).to.equal('¥123,457');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue