Skip to content

Commit

Permalink
fixup! 402: Replace Intl.NumberFormat test that presumed ISO 4217 dat…
Browse files Browse the repository at this point in the history
…a used for currency minor unit digits
  • Loading branch information
ben-allen committed Oct 31, 2024
1 parent 8588bdc commit c62167c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/intl402/NumberFormat/currency-digits.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ author: Ben Allen
---*/

const nf = Intl.NumberFormat([], {style: "currency", currency: "USD"});
const max = nf.resolvedOptions.maximumFractionDigits;
const min = nf.resolvedOptions.minimumFractionDigits;
const max = nf.resolvedOptions().maximumFractionDigits;
const min = nf.resolvedOptions().minimumFractionDigits;

assert.sameValue(min === max, true, "Currency data not used; maximumFractionDigits does not match minimumFractionDigits");
assert.sameValue(min, max, "Currency data not used; maximumFractionDigits should match minimumFractionDigits");

0 comments on commit c62167c

Please sign in to comment.