2022-07-01 04:52:41 +02:00
|
|
|
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
import Quick
|
|
|
|
import Nimble
|
|
|
|
|
|
|
|
@testable import SessionMessagingKit
|
|
|
|
|
|
|
|
class BlindedIdLookupSpec: QuickSpec {
|
2023-09-22 06:49:39 +02:00
|
|
|
override class func spec() {
|
|
|
|
// MARK: - a BlindedIdLookup
|
2022-07-01 04:52:41 +02:00
|
|
|
describe("a BlindedIdLookup") {
|
2023-09-22 06:49:39 +02:00
|
|
|
// MARK: -- when initializing
|
2022-07-01 04:52:41 +02:00
|
|
|
context("when initializing") {
|
2023-09-22 06:49:39 +02:00
|
|
|
// MARK: ---- sets the values correctly
|
2022-07-01 04:52:41 +02:00
|
|
|
it("sets the values correctly") {
|
|
|
|
let lookup: BlindedIdLookup = BlindedIdLookup(
|
|
|
|
blindedId: "testBlindedId",
|
|
|
|
sessionId: "testSessionId",
|
|
|
|
openGroupServer: "testServer",
|
|
|
|
openGroupPublicKey: "testPublicKey"
|
|
|
|
)
|
|
|
|
|
|
|
|
expect(lookup.blindedId).to(equal("testBlindedId"))
|
|
|
|
expect(lookup.sessionId).to(equal("testSessionId"))
|
|
|
|
expect(lookup.openGroupServer).to(equal("testServer"))
|
|
|
|
expect(lookup.openGroupPublicKey).to(equal("testPublicKey"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|