-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change `sort-order` option to `sort` * Rename `alphabetical` function to `isAlphabetized` * Change `isAlphabetized` to include equality comparison, to handle duplicate imports * Add test cases to verify alphabetical sort is applied correctly to duplicate imports * Simplify `isAlphabetized` with guard clause * Make explicit comparison for `array.length === 0` * Have a single check of `sort` option before triggering `makeOutOfAlphabeticalOrderReport`, do not pass as parameter
- Loading branch information
1 parent
e13986c
commit 58da14f
Showing
3 changed files
with
57 additions
and
32 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