Backend for sphinx tribes and bounties. The bounty platform pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
UserTicketsView.tsx displays the bounties assigned to a bounty hunter and adds some test coverage.
File to be tested
src/people/widgetViews/__tests__/UserTicketsView.spec.tsx
Create a file named
src/people/widgetViews/__tests__/UserTicketsView.spec.tsx
Make a Mock API request to get user-assigned tickets, check getPersonAssignedBounties in frontend/app/src/store/main.ts, and mock the request API request in the function.
Check frontend/app/src/bounties/__tests__/bountyTest.spec.ts for example
We want to test that the bounties listed match the mock data bounties
Acceptance Criteria
[ ] Test that bounties assigned to a bounty hunter are visible
[ ] Test thattitleString displayed matches the title from the mock data
[ ] Test that the description displayed matches the title from the mock data
[ ] Test that the correct price appears on the screen in Sats
[ ] Test that the Estimated time displayed matches the title from the mock data
You can use this PR as an example https://github.com/stakwork/sphinx-tribes/pull/1185
Context
UserTicketsView.tsx displays the bounties assigned to a bounty hunter and adds some test coverage.
File to be tested
src/people/widgetViews/__tests__/UserTicketsView.spec.tsx
Create a file named
src/people/widgetViews/__tests__/UserTicketsView.spec.tsx
Make a Mock API request to get user-assigned tickets, check
getPersonAssignedBounties
in frontend/app/src/store/main.ts, and mock the request API request in the function.Check
frontend/app/src/bounties/__tests__/bountyTest.spec.ts
for exampleWe want to test that the bounties listed match the mock data bounties
Acceptance Criteria
titleString
displayed matches the title from the mock datadescription
displayed matches the title from the mock dataEstimated time
displayed matches the title from the mock dataYou can use this PR as an example
https://github.com/stakwork/sphinx-tribes/pull/1185