Skip to content

chore(frontend): improve tests for sort-archived-last#1113

Merged
c0rydoras merged 1 commit intoadfinis:mainfrom
c0rydoras:chore/frontend/improve-issue-100-tests
Mar 13, 2026
Merged

chore(frontend): improve tests for sort-archived-last#1113
c0rydoras merged 1 commit intoadfinis:mainfrom
c0rydoras:chore/frontend/improve-issue-100-tests

Conversation

@c0rydoras
Copy link
Copy Markdown
Collaborator

@c0rydoras c0rydoras commented Mar 13, 2026

Previously we sorted with ((o) => o.name) as compare function (in the test), which is a no-op because it doesn't return a number 🙈, besides that:

  • use "correct" terminology (compareFn instead of sortFn)
  • test that the original sorting logic is preserved
  • add test case for custom getters

- use "correct" terminology
- test that the original sorting logic is preserved
- add test case for custom getters
@c0rydoras c0rydoras requested a review from derrabauke March 13, 2026 14:01
@c0rydoras c0rydoras requested a review from a team as a code owner March 13, 2026 14:01
@c0rydoras c0rydoras merged commit 53db909 into adfinis:main Mar 13, 2026
7 checks passed
@c0rydoras c0rydoras deleted the chore/frontend/improve-issue-100-tests branch March 13, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants