mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
correction rooms.test.js
This commit is contained in:
parent
9286fe6b9c
commit
81c530eac6
2 changed files with 0 additions and 3 deletions
|
|
@ -243,7 +243,6 @@ const ManageRoom: React.FC = () => {
|
|||
console.log(`Listening for user-joined in room ${roomName}`);
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
socket.on('user-joined', (_student: StudentType) => {
|
||||
console.log("📢 Nouvel étudiant ajouté:", _student);
|
||||
if (quizMode === 'teacher') {
|
||||
webSocketService.nextQuestion(roomName, currentQuestion);
|
||||
} else if (quizMode === 'student') {
|
||||
|
|
|
|||
|
|
@ -254,8 +254,6 @@ describe('Rooms', () => {
|
|||
|
||||
it('should return false if room does not exist', async () => {
|
||||
const title = 'Nonexistent Room';
|
||||
const userId = '12345';
|
||||
|
||||
// Mock the database response
|
||||
collection.findOne.mockResolvedValue(null);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue