diff --git a/react/src/__tests__/Components/Footer/Components/RoomCreationPasswordDialog.test.js b/react/src/__tests__/Components/Footer/Components/RoomCreationPasswordDialog.test.js new file mode 100644 index 00000000..4550e925 --- /dev/null +++ b/react/src/__tests__/Components/Footer/Components/RoomCreationPasswordDialog.test.js @@ -0,0 +1,31 @@ +// src/RoomCreationPasswordDialog.test.js +import React from 'react'; +import { render } from '@testing-library/react'; +import {RoomCreationPasswordDialog} from "../../../../Components/Footer/Components/RoomCreationPasswordDialog"; + +// Mock the useContext hook +jest.mock('react', () => ({ + ...jest.requireActual('react'), +})); + +describe('Room Creation Password Dialog Component', () => { + + beforeEach(() => { + // Reset the mock implementation before each test + jest.clearAllMocks(); + }); + + + it('renders without crashing', () => { + render( + + ); + }); + +}); diff --git a/react/src/__tests__/Components/Footer/Components/ShareScreenButton.test.js b/react/src/__tests__/Components/Footer/Components/ShareScreenButton.test.js new file mode 100644 index 00000000..6ae1d661 --- /dev/null +++ b/react/src/__tests__/Components/Footer/Components/ShareScreenButton.test.js @@ -0,0 +1,30 @@ +// src/ShareScreenButton.test.js +import React from 'react'; +import { render } from '@testing-library/react'; +import ShareScreenButton from "../../../../Components/Footer/Components/ShareScreenButton"; + +// Mock the useContext hook +jest.mock('react', () => ({ + ...jest.requireActual('react'), +})); + +describe('Share Screen Button Component', () => { + + beforeEach(() => { + // Reset the mock implementation before each test + jest.clearAllMocks(); + }); + + + it('renders without crashing', () => { + render( + + ); + }); + +});