Skip to content

mustafa - #9

Closed
homsi6313-art wants to merge 1 commit into
HackYourAssignment:mainfrom
homsi6313-art:main
Closed

homsi6313-art wants to merge 1 commit into
HackYourAssignment:mainfrom
homsi6313-art:main

Conversation

@homsi6313-art

Copy link
Copy Markdown

Refactor cocktail.js to generate markdown output

Refactor cocktail.js to generate markdown output
@github-actions

Copy link
Copy Markdown

📝 HackYourFuture auto grade

Assignment Score: 22 / 100 ❌

Status: ❌ Not passed
Minimum score to pass: 50
🧪 The auto grade is experimental and still being improved

Test Details
Vitest unit test results:

❌ should complete all CRUD operations successfully
❌ should verify updatePost uses PUT method with Authorization
❌ should verify deleteUser uses DELETE method with Authorization
❌ should verify deletePost uses DELETE method with Authorization
❌ should verify getMe fetches current user info with Authorization
✅ should handle errors in any CRUD operation
❌ should make GET request to /users/me with Authorization header
❌ should return user information with correct structure
❌ should throw error when response is not ok (404)
❌ should make GET request to /posts/me with Authorization header
❌ should return an array of posts
❌ should return empty array when no posts exist
✅ should make POST request to /users/register with correct data
✅ should return user data with correct structure
✅ should include Content-Type header
✅ should throw error when API returns error
❌ should make POST request to /users/login with correct data
❌ should return user data with token
❌ should throw error on invalid credentials
❌ should make POST request to /posts with correct data and Authorization header
❌ should return post data with correct structure
❌ should include Content-Type and Authorization headers
❌ should throw error when not authenticated

Total passed: 5
Total failed: 18

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.

1 participant