We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00cac65 commit 07e83f7Copy full SHA for 07e83f7
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