Use Intl.Collator
instance for case-insensitive comparison
#192
GitHub Actions / Test results
succeeded
Jun 3, 2024 in 0s
13 passed, 0 failed and 0 skipped
✔️ test-results.xml
13 tests were completed in 641ms with 13 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
src/array-helpers/distinct.spec.ts | 2✔️ | 4ms | ||
src/array-helpers/group-by.spec.ts | 2✔️ | 5ms | ||
src/array-helpers/range.spec.ts | 2✔️ | 5ms | ||
src/array-helpers/sort-by.spec.ts | 4✔️ | 7ms | ||
src/authorization.spec.ts | 2✔️ | 4ms | ||
src/json-helpers/get-circular-replacer.spec.ts | 1✔️ | 3ms |
✔️ src/array-helpers/distinct.spec.ts
src/array-helpers/distinct.spec.ts
✔️ Distinct > When given a non distinct list > Returns only the distinct items
✔️ Distinct > When given distinct objects with non-distinct keys > Returns the first item for each duplicated key
✔️ src/array-helpers/group-by.spec.ts
src/array-helpers/group-by.spec.ts
✔️ GroupBy > When grouping primitives > Each group contains all instances of that primitive, order is based on the first occurrence of a key
✔️ GroupBy > When grouping non-primitives > Group items appear in the their original order
✔️ src/array-helpers/range.spec.ts
src/array-helpers/range.spec.ts
✔️ Range > When generating a range > It is inclusive of the start and end number, and includes all numbers in-between
✔️ Range > When generating an invalid range > Throws an error describing the issue
✔️ src/array-helpers/sort-by.spec.ts
src/array-helpers/sort-by.spec.ts
✔️ SortBy > When sorting an unordered list > It orders the list
✔️ SortBy > When sorting an unordered list descending > It orders the list descending
✔️ SortByIgnoreCase > When sorting an unordered list > It orders the list
✔️ combineSortFn > When sorting an unordered list by multiple properties > It applies sorting rules in order
✔️ src/authorization.spec.ts
src/authorization.spec.ts
✔️ AccessTokenResponse > correctly sets expiry
✔️ AccessTokenResponse > correctly evaluates expiry within seconds
✔️ src/json-helpers/get-circular-replacer.spec.ts
src/json-helpers/get-circular-replacer.spec.ts
✔️ getCircularReplacer > When stringifying an object with a circular reference > Sets circular references to undefined
Loading