mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
correction tests
This commit is contained in:
parent
241854159b
commit
0243270fdb
1 changed files with 3 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ jest.mock('src/pages/Teacher/ManageRoom/RoomContext');
|
||||||
|
|
||||||
jest.mock('qrcode.react', () => ({
|
jest.mock('qrcode.react', () => ({
|
||||||
__esModule: true,
|
__esModule: true,
|
||||||
default: ({ value }: { value: string }) => <div data-testid="qr-code">{value}</div>
|
default: (props: { value: string }) => <div data-testid="qr-code">{props.value}</div>,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const mockSocket = {
|
const mockSocket = {
|
||||||
|
|
@ -335,6 +335,6 @@ describe('ManageRoom', () => {
|
||||||
fireEvent.click(screen.getByRole('button', { name: /lien de participation/i }));
|
fireEvent.click(screen.getByRole('button', { name: /lien de participation/i }));
|
||||||
|
|
||||||
const roomUrl = `${window.location.origin}/student/join-room?roomName=Test Room`;
|
const roomUrl = `${window.location.origin}/student/join-room?roomName=Test Room`;
|
||||||
expect(screen.getByTestId('qr-code')).toHaveTextContent(`${roomUrl}`);
|
expect(screen.getByTestId('qr-code')).toHaveTextContent(roomUrl);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue