Settings Feature Enhancement

Nucleic-Session: 89BFAB13-D559-43FC-BE28-0B2639BECF0F
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-05 22:17:43 -07:00
co-authored by nucleic
parent 4ebd8861e3
commit 3187a0f3d0
@@ -149,6 +149,15 @@ import Testing
#expect(try roundTrip(HostMsg.pairingCode(nil)) == .pairingCode(nil))
}
@Test func macPairApprovalForwardingRoundTrips() throws {
// Host forwards the confirm to a control client, which answers, and the host withdraws it.
let req = WireMacPairRequest(deviceID: "mac-c", label: "Studio")
#expect(try roundTrip(req) == req)
#expect(try roundTrip(HostMsg.macPairRequested(req)) == .macPairRequested(req))
#expect(try roundTrip(HostMsg.macPairResolved("mac-c", true)) == .macPairResolved("mac-c", true))
#expect(try roundTrip(ClientMsg.respondMacPair("mac-c", false)) == .respondMacPair("mac-c", false))
}
@Test func peerListRoundTrips() throws {
let peers = [
PeerSummary(deviceID: "mac-b", label: "Work Mac", kind: .mac,