fix tests

This commit is contained in:
Valere
2026-03-24 08:43:31 +01:00
committed by Mauro
parent a170018942
commit 558ec76f73
2 changed files with 12 additions and 6 deletions
+11 -5
View File
@@ -18,19 +18,25 @@ struct RoomTests {
room.hasActiveRoomCallReturnValue = false
room.isDirectReturnValue = false
var callIntent = await room.joinCallIntent
var callIntent = await room.joinCallIntent()
#expect(callIntent == .startCall)
room.isDirectReturnValue = true
callIntent = await room.joinCallIntent
callIntent = await room.joinCallIntent()
#expect(callIntent == .startCallDm)
callIntent = await room.joinCallIntent(voiceOnly: true)
#expect(callIntent == .startCallDmVoice)
room.hasActiveRoomCallReturnValue = true
callIntent = await room.joinCallIntent
callIntent = await room.joinCallIntent()
#expect(callIntent == .joinExistingDm)
callIntent = await room.joinCallIntent(voiceOnly: true)
#expect(callIntent == .joinExistingDmVoice)
room.isDirectReturnValue = false
callIntent = await room.joinCallIntent
callIntent = await room.joinCallIntent()
#expect(callIntent == .joinExisting)
}
}