-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use locale-independent comparison for sorting of overrides
- Loading branch information
Jan Novotny
committed
Nov 15, 2024
1 parent
99a9760
commit 0eb4a58
Showing
5 changed files
with
556 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,8 +53,8 @@ function sortObjectAlphabetically(t, options = {}) { | |
for (let depth = 1; depth < maxDepth + 1; depth++) { | ||
sortObject(t, { | ||
...options, | ||
value: keysToObject(['z', 'a'], depth), | ||
expect: expect || keysToObject(['a', 'z'], depth), | ||
value: keysToObject(['z', 'e', 'ch', 'a'], depth), | ||
expect: expect || keysToObject(['a', 'ch', 'e', 'z'], depth), | ||
}) | ||
} | ||
} | ||
|
@@ -73,6 +73,10 @@ function sortObjectWithRangeAlphabetically(t, options = {}) { | |
'@[email protected]', | ||
'[email protected]', | ||
'@b-package', | ||
'@[email protected]', | ||
'@[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
], | ||
depth, | ||
), | ||
|
@@ -82,10 +86,14 @@ function sortObjectWithRangeAlphabetically(t, options = {}) { | |
[ | ||
'@[email protected]', | ||
'@b-package', | ||
'@[email protected]', | ||
'@[email protected]', | ||
'@[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
], | ||
depth, | ||
), | ||
|
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
Oops, something went wrong.