-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@formatjs/intl-durationformat): fix partitioning logic
- Loading branch information
Long Ho
committed
Nov 13, 2023
1 parent
d13c90c
commit 4f5a1fc
Showing
7 changed files
with
204 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
packages/intl-durationformat/tests/__snapshots__/index.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Intl.DurationFormat resolvedOptions 1`] = ` | ||
{ | ||
"days": "short", | ||
"daysDisplay": "auto", | ||
"fractionalDigits": undefined, | ||
"hours": "short", | ||
"hoursDisplay": "auto", | ||
"locale": "en", | ||
"microseconds": "short", | ||
"microsecondsDisplay": "auto", | ||
"milliseconds": "short", | ||
"millisecondsDisplay": "auto", | ||
"minutes": "short", | ||
"minutesDisplay": "auto", | ||
"months": "short", | ||
"monthsDisplay": "auto", | ||
"nanoseconds": "short", | ||
"nanosecondsDisplay": "auto", | ||
"numberingSystem": "latn", | ||
"seconds": "short", | ||
"secondsDisplay": "auto", | ||
"style": "short", | ||
"weeks": "short", | ||
"weeksDisplay": "auto", | ||
"years": "short", | ||
"yearsDisplay": "auto", | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters