Settings Feature Enhancement
Nucleic-Session: 89BFAB13-D559-43FC-BE28-0B2639BECF0F Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user