We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68fd6d5 commit 04355afCopy full SHA for 04355af
test/parallel/test-intl.js
@@ -104,6 +104,13 @@ if (!common.hasIntl) {
104
const numberFormat = new Intl.NumberFormat(['en']).format(12345.67890);
105
assert.strictEqual(numberFormat, '12,345.679');
106
}
107
+ // Number format resolved options
108
+ {
109
+ const numberFormat = new Intl.NumberFormat('en-US', { style: 'percent' });
110
+ const resolvedOptions = numberFormat.resolvedOptions();
111
+ assert.strictEqual(resolvedOptions.locale, 'en-US');
112
+ assert.strictEqual(resolvedOptions.style, 'percent');
113
+ }
114
// Significant Digits
115
{
116
const loc = ['en-US'];
0 commit comments