mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
Properly fixed the busted migration issue Updated to the latest version of Quick and Nimble (unit testing libraries) Updated the tests based on the above
34 lines
1.1 KiB
Swift
34 lines
1.1 KiB
Swift
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
|
|
import Quick
|
|
import Nimble
|
|
|
|
@testable import SessionMessagingKit
|
|
|
|
class BlindedIdLookupSpec: QuickSpec {
|
|
override class func spec() {
|
|
// MARK: - a BlindedIdLookup
|
|
describe("a BlindedIdLookup") {
|
|
// MARK: -- when initializing
|
|
context("when initializing") {
|
|
// MARK: ---- sets the values correctly
|
|
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"))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|