Skip to content

Commit

Permalink
resolved conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulch07 committed Dec 22, 2024
2 parents c92a314 + a16e02e commit 720c137
Show file tree
Hide file tree
Showing 4 changed files with 424 additions and 224 deletions.
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@ export default {
'<rootDir>/src',
],
moduleNameMapper: {
'\\.(css|scss|sass|less)$': 'identity-obj-proxy',
'^react-native$': 'react-native-web',
'^@dicebear/core$': '<rootDir>/scripts/__mocks__/@dicebear/core.ts',
'^@dicebear/collection$':
'<rootDir>/scripts/__mocks__/@dicebear/collection.ts',
'\\.svg\\?react$': '<rootDir>/scripts/__mocks__/fileMock.js',
'\\.svg$': '<rootDir>/scripts/__mocks__/fileMock.js',
'^@pdfme/generator$': '<rootDir>/scripts/__mocks__/@pdfme/generator.ts',
'\\.(css|scss|sass|less)$': 'identity-obj-proxy',
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
},
moduleFileExtensions: [
'web.js',
Expand Down
1 change: 0 additions & 1 deletion src/components/MemberDetail/customTableCell.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ describe('CustomTableCell', () => {
await waitFor(() => screen.getByTestId('custom-row'));

expect(screen.getByText('Test Event')).toBeInTheDocument();
expect(screen.getByText('May 1, 2023')).toBeInTheDocument();
expect(screen.getByText('Yes')).toBeInTheDocument();
expect(screen.getByText('2')).toBeInTheDocument();

Expand Down
4 changes: 0 additions & 4 deletions src/components/OrganizationScreen/OrganizationScreen.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,18 @@ describe('Testing OrganizationScreen', () => {
const closeButton = screen.getByTestId('closeMenu');
fireEvent.click(closeButton);

// Check for contract class after closing
expect(screen.getByTestId('mainpageright')).toHaveClass(styles.expand);

const openButton = screen.getByTestId('openMenu');
fireEvent.click(openButton);

// Check for expand class after opening
expect(screen.getByTestId('mainpageright')).toHaveClass(styles.contract);
});

test('handles window resize', () => {
renderComponent();

window.innerWidth = 800;
fireEvent(window, new Event('resize'));

expect(screen.getByTestId('mainpageright')).toHaveClass(styles.expand);
});
});
Loading

0 comments on commit 720c137

Please sign in to comment.