Kurdtvs-Live-Kurdish-TV-Kur.../MastodonSDK/Tests/MastodonSDKTests/MastodonSDKTests.swift

20 lines
487 B
Swift
Raw Normal View History

2021-01-22 07:27:37 +01:00
import XCTest
2021-01-27 09:01:20 +01:00
import Combine
2021-01-22 07:27:37 +01:00
@testable import MastodonSDK
final class MastodonSDKTests: XCTestCase {
2021-01-27 09:01:20 +01:00
var disposeBag = Set<AnyCancellable>()
2021-01-28 07:52:35 +01:00
2021-01-29 12:38:11 +01:00
let session = URLSession(configuration: .ephemeral)
var domain: String { MastodonSDKTests.environmentVariable(key: "domain") }
// TODO: replace with test account token
var testToken = ""
2021-01-28 07:52:35 +01:00
2021-01-29 12:38:11 +01:00
static func environmentVariable(key: String) -> String {
return ProcessInfo.processInfo.environment[key]!
2021-01-28 07:52:35 +01:00
}
2021-01-22 07:27:37 +01:00
2021-01-28 07:52:35 +01:00
}