Closed elraphty closed 9 months ago
OrganizationDetails.tsx displays the details and users of an organization add test coverage.
File to be tested src/people/widgetViews/__tests__/OrganizationDetails.spec.tsx
src/people/widgetViews/__tests__/OrganizationDetails.spec.tsx
Create a file named src/people/widgetViews/__tests__/OrganizationDetails.spec.tsx
Mock a user organization and pass it as a prop to OrganizationDetails, check the Organization interface in /app/src/store/main.ts, and make a mock.
Organization
Mock the local storage and add a user, the user pubkey should be the same as the Organization owner_pubkey so the user can be the org admin.
owner_pubkey
Check frontend/app/src/bounties/__tests__/bountyTest.spec.ts for example
frontend/app/src/bounties/__tests__/bountyTest.spec.ts
We want to test that the right organization details are displayed
bounty_count
You can use this PR as an example https://github.com/stakwork/sphinx-tribes/pull/1185
https://github.com/stakwork/sphinx-tribes/pull/1185
@elraphty can i work on this ?
This is yours eric
Context
OrganizationDetails.tsx displays the details and users of an organization add test coverage.
File to be tested
src/people/widgetViews/__tests__/OrganizationDetails.spec.tsx
Create a file named
src/people/widgetViews/__tests__/OrganizationDetails.spec.tsx
Mock a user organization and pass it as a prop to OrganizationDetails, check the
Organization
interface in /app/src/store/main.ts, and make a mock.Mock the local storage and add a user, the user pubkey should be the same as the Organization
owner_pubkey
so the user can be the org admin.Check
frontend/app/src/bounties/__tests__/bountyTest.spec.ts
for exampleWe want to test that the right organization details are displayed
Acceptance Criteria
bounty_count
is 0You can use this PR as an example
https://github.com/stakwork/sphinx-tribes/pull/1185