apache / apache/texera

Add frontend unit tests for PublicProjectService

Open
#6,452 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
314
Forks
187
Avg merge
1d 21h
Merged PRs (30d)
214

Description

### Task Summary
The frontend service at `frontend/src/app/dashboard/service/user/public-project/public-project.service.ts` currently has no unit-test coverage. Add a spec covering the getType, makePublic, makePrivate, list and add endpoints, including request methods and bodies, exercising both success and error paths.
### Task Type
- [x] Testing / QA

Contributor guide

Open the contributing guide

Research direction

Start by reading frontend/src/app/dashboard/service/user/public-project/public-project.service.ts and identify the getType, makePublic, makePrivate, list and add requests. Add a unit-test spec that checks each request method and body, with both successful responses and error paths; done means the complete endpoint behavior is covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, testing
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
75/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.