⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Tests 3 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ FAIL…
- User
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Tests 3 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
FAIL src/pages/lobbyScreen/useLobbyData.test.tsx > useLobbyData Hook > should leave the game successfully AssertionError: expected "spy" to be called with arguments: [ 'leaveGame' ]
Received:
1st spy call:
Array [
- Object {}, "leaveGame", ]
Number of calls: 1
❯ src/pages/lobbyScreen/useLobbyData.test.tsx:294:31 292| 293| // Verify that leaveGame callable was invoked correctly 294| expect(httpsCallable).toHaveBeenCalledWith('leaveGame'); | ^ 295| expect(mockLeaveGameFunction).toHaveBeenCalledWith({ gameId: mock… 296|
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/3]⎯
FAIL src/pages/lobbyScreen/useLobbyData.test.tsx > useLobbyData Hook > should start the game successfully AssertionError: expected "spy" to be called with arguments: [ 'startGame' ]
Received:
1st spy call:
Array [
- Object {}, "startGame", ]
Number of calls: 1
❯ src/pages/lobbyScreen/useLobbyData.test.tsx:350:31 348| 349| // Verify that startGame callable was invoked correctly 350| expect(httpsCallable).toHaveBeenCalledWith('startGame'); | ^ 351| expect(mockStartGameFunction).toHaveBeenCalledWith({ gameId: mock… 352|
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/3]⎯
FAIL src/pages/lobbyScreen/useLobbyData.test.tsx > useLobbyData Hook > should handle startGame error correctly AssertionError: expected "spy" to be called with arguments: [ 'startGame' ]
Received:
1st spy call:
Array [
- Object {}, "startGame", ]
Number of calls: 1
❯ src/pages/lobbyScreen/useLobbyData.test.tsx:407:31 405| 406| // Verify that startGame callable was invoked correctly 407| expect(httpsCallable).toHaveBeenCalledWith('startGame'); | ^ 408| expect(mockStartGameFunction).toHaveBeenCalledWith({ gameId: mock… 409|
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/3]⎯
- Assistant