stakwork / sphinx-tribes-frontend

Frontend for sphinx tribes and bounties. The bounty platform that pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
12 stars 42 forks source link

[Tests][Component] Add tests to src/people/widgetViews/UserTicketsView.tsx #129

Closed Vayras closed 8 months ago

Vayras commented 8 months ago

Context

UserTicketsView.tsx Displays bounties assigned to an user

File to be tested

src/people/widgetViews/UserTicketsView.tsx

File to create

src/people/widgetViews/UserTicketsView.Spec.tsx

create a mock user with mock bounties assigned to them and call main.getPersonAssignedBounties upon rendering UserTicketsView.tsx handle this from both signed in and signed out perspective

Acceptance Criteria

References

Jest Playlist: https://www.youtube.com/watch?v=T2sv8jXoP4s&list=PLC3y8-rFHvwirqe1KHFCHJ0RqNuN61SJd

Fog3211 commented 8 months ago

@Vayras please assign me to this.

MahtabBukhari commented 8 months ago

@ecurrencyhodler @Vayras is this one available?

ecurrencyhodler commented 8 months ago

Yes. It's yours.

ecurrencyhodler commented 8 months ago

@MahtabBukhari do you have an update on this issue?

Nightrider0098 commented 8 months ago

@ecurrencyhodler Can you assign me this?

Nightrider0098 commented 8 months ago

https://github.com/stakwork/sphinx-tribes-frontend/pull/228 pr for the same