Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gouravmpk committed Feb 14, 2024
1 parent b0f85df commit 89a4422
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ const mockBounties: Bounty[] = [
assigneeImage: '',
provider: 'Provider 1',
providerImage: 'provider-image-1.jpg',
organization: 'Org 1',
organization_name: 'Org 1',
organizationImage: 'org-image-1.jpg',
paid: false,
assignee_alias: 'Ednum',
status: 'open'
status: 'open',
},
{
id: 2,
Expand All @@ -53,7 +53,7 @@ const mockBounties: Bounty[] = [
assigneeImage: 'assignee-image-2.jpg',
provider: 'Provider 2',
providerImage: 'provider-image-2.jpg',
organization: 'Org 2',
organization_name: 'Org 2',
organizationImage: 'org-image-2.jpg',
status: 'assigned',
paid: false,
Expand All @@ -71,7 +71,7 @@ const mockBounties: Bounty[] = [
assigneeImage: 'assignee-image-3.jpg',
provider: 'Provider 3',
providerImage: 'provider-image-3.jpg',
organization: 'Org 3',
organization_name: 'Org 3',
organizationImage: 'org-image-3.jpg',
status: 'paid',
paid: true,
Expand Down Expand Up @@ -192,7 +192,7 @@ describe('MyTable Component', () => {
expect(getByText(dates[index])).toBeInTheDocument();
// expect(getByText(String(bounty.dtgp))).toBeInTheDocument();
// expect(getByText(bounty.provider)).toBeInTheDocument();
expect(getByText(bounty.organization)).toBeInTheDocument();
expect(getByText(bounty.organization_name)).toBeInTheDocument();
});
});

Expand Down Expand Up @@ -246,7 +246,7 @@ describe('MyTable Component', () => {
'035f22835fbf55cf4e6823447c63df74012d1d587ed60ef7cbfa3e430278c44cce:03a6ea2d9ead2120b12bd66292bb4a302c756983dc45dcb2b364b461c66fd53bcb:1099517001729',
providerImage:
'https://avatars.githubusercontent.com/u/10001?s=460&u=8c61f1cda5e9e2c2d1d5b8d2a5a8a5b8d2a5a8a5&v=4',
organization: 'OrganizationName',
organization_name: 'OrganizationName',
organizationImage:
'https://avatars.githubusercontent.com/u/10001?s=460&u=8c61f1cda5e9e2c2d1d5b8d2a5a8a5b8d2a5a8a5&v=4',
status: 'open',
Expand Down Expand Up @@ -300,7 +300,7 @@ describe('MyTable Component', () => {
'035f22835fbf55cf4e6823447c63df74012d1d587ed60ef7cbfa3e430278c44cce:03a6ea2d9ead2120b12bd66292bb4a302c756983dc45dcb2b364b461c66fd53bcb:1099517001729',
providerImage:
'https://avatars.githubusercontent.com/u/10001?s=460&u=8c61f1cda5e9e2c2d1d5b8d2a5a8a5b8d2a5a8a5&v=4',
organization: 'OrganizationName',
organization_name: 'OrganizationName',
organizationImage:
'https://avatars.githubusercontent.com/u/10001?s=460&u=8c61f1cda5e9e2c2d1d5b8d2a5a8a5b8d2a5a8a5&v=4',
status: 'open',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/superadmin/tableComponent/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type Bounty = {
assigneeImage: string;
provider: string;
providerImage: string;
organization: string;
organization_name: string;
organizationImage: string;
status: string;
assignee_alias: string;
Expand Down
18 changes: 12 additions & 6 deletions src/pages/superadmin/tableComponent/mockBountyData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const bounties = [
'035f22835fbf55cf4e6823447c63df74012d1d587ed60ef7cbfa3e430278c44cce:03a6ea2d9ead2120b12bd66292bb4a302c756983dc45dcb2b364b461c66fd53bcb:1099517001729',
provider:
'035f22835fbf55cf4e6823447c63df74012d1d587ed60ef7cbfa3e430278c44cce:03a6ea2d9ead2120b12bd66292bb4a302c756983dc45dcb2b364b461c66fd53bcb:1099517001729',
organization: 'OrganizationName',
organization_name: 'OrganizationName',
status: 'open',
assigneeImage:
'https://avatars.githubusercontent.com/u/10001?s=460&u=8c61f1cda5e9e2c2d1d5b8d2a5a8a5b8d2a5a8a5&v=4',
Expand All @@ -19,7 +19,9 @@ export const bounties = [
organizationImage:
'https://avatars.githubusercontent.com/u/10001?s=460&u=8c61f1cda5e9e2c2d1d5b8d2a5a8a5b8d2a5a8a5&v=4',
bounty_created: '2023-10-04T14:58:50.441223Z',
paid_date: '2023-10-04T14:58:50.441223Z'
paid_date: '2023-10-04T14:58:50.441223Z',
assignee_alias:"gk",
paid:true
},
{
id: 2,
Expand All @@ -30,7 +32,7 @@ export const bounties = [
dtgp: 1,
assignee: 'John Doe',
provider: 'Jane Doe',
organization: 'Doe Inc.',
organization_name: 'Doe Inc.',
status: 'paid',
assigneeImage:
'https://avatars.githubusercontent.com/u/10001?s=460&u=8c61f1cda5e9e2c2d1d5b8d2a5a8a5b8d2a5a8a5&v=4',
Expand All @@ -39,7 +41,9 @@ export const bounties = [
organizationImage:
'https://avatars.githubusercontent.com/u/10001?s=460&u=8c61f1cda5e9e2c2d1d5b8d2a5a8a5b8d2a5a8a5&v=4',
bounty_created: '2023-10-04T14:58:50.441223Z',
paid_date: '2023-10-04T14:58:50.441223Z'
paid_date: '2023-10-04T14:58:50.441223Z',
assignee_alias:'gk',
paid:false
},
{
id: 3,
Expand All @@ -50,7 +54,7 @@ export const bounties = [
dtgp: 1,
assignee: 'John Doe',
provider: 'Jane Doe',
organization: 'Doe Inc.',
organization_name: 'Doe Inc.',
status: 'assigned',
assigneeImage:
'https://avatars.githubusercontent.com/u/10001?s=460&u=8c61f1cda5e9e2c2d1d5b8d2a5a8a5b8d2a5a8a5&v=4',
Expand All @@ -59,6 +63,8 @@ export const bounties = [
organizationImage:
'https://avatars.githubusercontent.com/u/10001?s=460&u=8c61f1cda5e9e2c2d1d5b8d2a5a8a5b8d2a5a8a5&v=4',
bounty_created: '2023-10-04T14:58:50.441223Z',
paid_date: '2023-10-04T14:58:50.441223Z'
paid_date: '2023-10-04T14:58:50.441223Z',
assignee_alias:'gk',
paid:false
}
];

0 comments on commit 89a4422

Please sign in to comment.