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.
The getPeopleBounties function in store/main.ts makes an API query to get all bounties, write a test that mocks the get bounties endpoint when bounties are listed it should be persisted to the peopleBounties
localStorage.
The saveBounty function in store/main.ts makes an API query to add a new bounty, write a test that mocks the save bounty endpoint when a new bounty is saved it should be added and persisted to the peopleBounties
localStorage.
The getBountyById function in store/main.ts makes an API query to get a single bounty, write a test that mocks the get bounty by Id endpoint after a successful request the bounty, you should ascertain that the return bounty matches the bounty in peopleBounties array in local storage with the same bounty id.
The deleteBounty function in store/main.ts makes an API query to delete a bounty, write a test that mocks the delete bounty endpoint after a successful delete the bounty should be removed from `people bounties
localStorage.
Create mock data for unit tests for bounty creation:
Bounty interface
The getPeopleBounties function in store/main.ts makes an API query to get all bounties, write a test that mocks the get bounties endpoint when bounties are listed it should be persisted to the
peopleBounties
localStorage.The saveBounty function in store/main.ts makes an API query to add a new bounty, write a test that mocks the save bounty endpoint when a new bounty is saved it should be added and persisted to the
peopleBounties
localStorage.The getBountyById function in store/main.ts makes an API query to get a single bounty, write a test that mocks the get bounty by Id endpoint after a successful request the bounty, you should ascertain that the return bounty matches the bounty in peopleBounties array in local storage with the same bounty id.
The deleteBounty function in store/main.ts makes an API query to delete a bounty, write a test that mocks the delete bounty endpoint after a successful delete the bounty should be removed from
`people bounties
localStorage.