correction rooms.test.js

This commit is contained in:
NouhailaAater 2025-02-22 02:19:06 -05:00
parent 9286fe6b9c
commit 81c530eac6
2 changed files with 0 additions and 3 deletions

View file

@ -243,7 +243,6 @@ const ManageRoom: React.FC = () => {
console.log(`Listening for user-joined in room ${roomName}`); console.log(`Listening for user-joined in room ${roomName}`);
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
socket.on('user-joined', (_student: StudentType) => { socket.on('user-joined', (_student: StudentType) => {
console.log("📢 Nouvel étudiant ajouté:", _student);
if (quizMode === 'teacher') { if (quizMode === 'teacher') {
webSocketService.nextQuestion(roomName, currentQuestion); webSocketService.nextQuestion(roomName, currentQuestion);
} else if (quizMode === 'student') { } else if (quizMode === 'student') {

View file

@ -254,8 +254,6 @@ describe('Rooms', () => {
it('should return false if room does not exist', async () => { it('should return false if room does not exist', async () => {
const title = 'Nonexistent Room'; const title = 'Nonexistent Room';
const userId = '12345';
// Mock the database response // Mock the database response
collection.findOne.mockResolvedValue(null); collection.findOne.mockResolvedValue(null);