#159 Refactored code to use DRY and added test #163

Collaborator
No description provided.
Collaborator

Besides the small name change, look good to me!

Besides the small name change, look good to me!
testing the shared apifetch function
c24carso removed their assignment 2026-04-08 10:58:13 +00:00
Collaborator

What i've reviewed:
All changes across the files.

Issues found:
Filename has a typo (SharedFetures.js should be SharedFeatures.js) on all files.
Only tests success cases no failure cases.
Testing name doesn't follow the testing guidelines(MethodName_StateUnderTest_ExpectedBehavior).
Debug code should not be merged. (console.log('NU SKA JAG TESTA ') )

Checks performed:
Reviewed code quality.
Verified that it keeps the same functionality as old test.
Checked against the standards set by the wiki.
Could not pull and try locally as i had no access to branch.

What i've reviewed: All changes across the files. Issues found: Filename has a typo (SharedFetures.js should be SharedFeatures.js) on all files. Only tests success cases no failure cases. Testing name doesn't follow the testing guidelines(MethodName_StateUnderTest_ExpectedBehavior). Debug code should not be merged. (console.log('NU SKA JAG TESTA ') ) Checks performed: Reviewed code quality. Verified that it keeps the same functionality as old test. Checked against the standards set by the wiki. Could not pull and try locally as i had no access to branch.
Author
Collaborator

Working on it

Working on it
- Name change: SharedFetures.js ->SharedFeatures.js
 - Change import in effected file
- Implemented unit test for failure case
 - Error 500
- Removed debug code
I just capitalized "UseApi" and the description to comply with the coding standard.
c24elipe merged commit 46838af161 into #112-Card]-Research/test-schedule-card 2026-04-09 07:37:30 +00:00
c24elipe deleted branch #159-Breakout-of-duplicate-code-in-frontend/src/features 2026-04-09 07:38:30 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K!163
No description provided.