Skip to content

Commit

Permalink
Format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
git-init-priyanshu committed Mar 5, 2024
1 parent e5d7ad1 commit c20d208
Show file tree
Hide file tree
Showing 11 changed files with 12,612 additions and 12,608 deletions.
25,150 changes: 12,575 additions & 12,575 deletions src/assets/css/app.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/components/Loader/Loader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const Loader = (props: InterfaceLoaderProps): JSX.Element => {
props?.size == 'sm'
? styles.spinnerSm
: props?.size == 'lg'
? styles.spinnerLg
: styles.spinnerXl
? styles.spinnerLg
: styles.spinnerXl
}
`}
animation="border"
Expand Down
4 changes: 2 additions & 2 deletions src/components/OrgAdminListCard/OrgAdminListCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('Testing Organization Admin List Card', () => {
<OrgAdminListCard {...props} />
</I18nextProvider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);

await wait();
Expand All @@ -74,7 +74,7 @@ describe('Testing Organization Admin List Card', () => {
<OrgAdminListCard {...props} />
</I18nextProvider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);

await wait();
Expand Down
8 changes: 4 additions & 4 deletions src/components/OrgListCard/OrgListCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('Testing the Super Dash List', () => {
<OrgListCard {...props} />
</I18nextProvider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);
expect(screen.getByAltText(/Dogs Care image/i)).toBeInTheDocument();
expect(screen.getByText('Admins:')).toBeInTheDocument();
Expand All @@ -95,7 +95,7 @@ describe('Testing the Super Dash List', () => {
<OrgListCard {...props} />
</I18nextProvider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);

expect(window.location).toBeAt('/orgdash');
Expand All @@ -111,7 +111,7 @@ describe('Testing the Super Dash List', () => {
<I18nextProvider i18n={i18nForTest}>
<OrgListCard {...imageNullProps} />
</I18nextProvider>
</MockedProvider>
</MockedProvider>,
);
expect(screen.getByTestId(/emptyContainerForImage/i)).toBeInTheDocument();
});
Expand All @@ -124,7 +124,7 @@ describe('Testing the Super Dash List', () => {
<OrgListCard {...props} />
</I18nextProvider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);
userEvent.click(screen.getByTestId('manageBtn'));
expect(screen.getByTestId(/icon/)).toBeInTheDocument();
Expand Down
4 changes: 2 additions & 2 deletions src/components/OrgPeopleListCard/OrgPeopleListCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('Testing Organization People List Card', () => {
<OrgPeopleListCard {...props} />
</I18nextProvider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);

await wait();
Expand All @@ -72,7 +72,7 @@ describe('Testing Organization People List Card', () => {
<OrgPeopleListCard key={123} id="1" />
</I18nextProvider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);

await wait();
Expand Down
2 changes: 1 addition & 1 deletion src/components/OrgPeopleListCard/OrgPeopleListCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface InterfaceOrgPeopleListCardProps {
}

function orgPeopleListCard(
props: InterfaceOrgPeopleListCardProps
props: InterfaceOrgPeopleListCardProps,
): JSX.Element {
const currentUrl = window.location.href.split('=')[1];
const [remove] = useMutation(REMOVE_MEMBER_MUTATION);
Expand Down
4 changes: 2 additions & 2 deletions src/components/UserListCard/UserListCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('Testing User List Card', () => {
<UserListCard {...props} />
</I18nextProvider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);

await wait();
Expand All @@ -73,7 +73,7 @@ describe('Testing User List Card', () => {
<UserListCard {...props} />
</I18nextProvider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);

await wait();
Expand Down
2 changes: 1 addition & 1 deletion src/screens/CommunityProfile/CommunityProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const CommunityProfile = (): JSX.Element => {
name="logo"
data-testid="fileInput"
onChange={async (
e: React.ChangeEvent<HTMLInputElement>
e: React.ChangeEvent<HTMLInputElement>,
): Promise<void> => {
setProfileVariable((prevInput) => ({
...prevInput,
Expand Down
8 changes: 6 additions & 2 deletions src/screens/OrganizationPeople/OrganizationPeople.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@
font-weight: 600;
cursor: pointer;
margin-left: 30px;
transition: transform 0.2s, box-shadow 0.2s;
transition:
transform 0.2s,
box-shadow 0.2s;
}
.flexdir {
display: flex;
Expand Down Expand Up @@ -192,7 +194,9 @@
outline: none;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
transition:
transform 0.2s,
box-shadow 0.2s;
width: 100%;
}
.dropdown {
Expand Down
32 changes: 16 additions & 16 deletions src/screens/OrganizationPeople/OrganizationPeople.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ for (let i = 0; i < 100; i++) {
const createMemberMock = (
orgId = '',
firstNameContains = '',
lastNameContains = ''
lastNameContains = '',
): any => ({
request: {
query: ORGANIZATIONS_MEMBER_CONNECTION_LIST,
Expand Down Expand Up @@ -117,7 +117,7 @@ const createAdminMock = (
orgId = '',
firstNameContains = '',
lastNameContains = '',
adminFor = ''
adminFor = '',
): any => ({
request: {
query: ORGANIZATIONS_MEMBER_CONNECTION_LIST,
Expand Down Expand Up @@ -170,7 +170,7 @@ const createAdminMock = (

const createUserMock = (
firstNameContains = '',
lastNameContains = ''
lastNameContains = '',
): any => ({
request: {
query: USER_LIST,
Expand Down Expand Up @@ -559,7 +559,7 @@ describe('Organization People Page', () => {
</I18nextProvider>
</Provider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);

expect(container.textContent).not.toBe('Loading data...');
Expand Down Expand Up @@ -587,7 +587,7 @@ describe('Organization People Page', () => {
</I18nextProvider>
</Provider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);
await wait();

Expand All @@ -597,11 +597,11 @@ describe('Organization People Page', () => {

userEvent.type(
screen.getByPlaceholderText(/Enter Full Name/i),
searchData.fullNameMember
searchData.fullNameMember,
);
await wait();
expect(screen.getByPlaceholderText(/Enter Full Name/i)).toHaveValue(
searchData.fullNameMember
searchData.fullNameMember,
);

await wait();
Expand All @@ -626,7 +626,7 @@ describe('Organization People Page', () => {
</I18nextProvider>
</Provider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);
await wait();

Expand Down Expand Up @@ -666,7 +666,7 @@ describe('Organization People Page', () => {
</I18nextProvider>
</Provider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);

await wait();
Expand All @@ -693,15 +693,15 @@ describe('Organization People Page', () => {
// Type in the full name input field
userEvent.type(
screen.getByPlaceholderText(/Enter Full Name/i),
searchData.fullNameAdmin
searchData.fullNameAdmin,
);

// Wait for any asynchronous operations to complete
await wait();

// Assert the value of the full name input field
expect(screen.getByPlaceholderText(/Enter Full Name/i)).toHaveValue(
searchData.fullNameAdmin
searchData.fullNameAdmin,
);
await wait();

Expand Down Expand Up @@ -729,7 +729,7 @@ describe('Organization People Page', () => {
</I18nextProvider>
</Provider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);

// Wait for the component to finish rendering
Expand Down Expand Up @@ -780,7 +780,7 @@ describe('Organization People Page', () => {
</I18nextProvider>
</Provider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);
await wait();

Expand Down Expand Up @@ -809,7 +809,7 @@ describe('Organization People Page', () => {
</I18nextProvider>
</Provider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);
await wait();

Expand All @@ -836,7 +836,7 @@ describe('Organization People Page', () => {
const pathname = window.location.pathname;
const id = pathname.split('=')[1];
return datas.joinedOrganizations?.some((org) => org._id === id);
}
},
);
await wait();
expect(orgUserssize?.length).toBe(1);
Expand All @@ -857,7 +857,7 @@ describe('Organization People Page', () => {
</I18nextProvider>
</Provider>
</BrowserRouter>
</MockedProvider>
</MockedProvider>,
);

await wait();
Expand Down
2 changes: 1 addition & 1 deletion src/utils/StaticMockLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,4 @@ export function mockSingleLink(
}

return new StaticMockLink(mocks, maybeTypename);
}
}

0 comments on commit c20d208

Please sign in to comment.