MastodonSDKTests.swift 487 B

1234567891011121314151617181920
  1. import XCTest
  2. import Combine
  3. @testable import MastodonSDK
  4. final class MastodonSDKTests: XCTestCase {
  5. var disposeBag = Set<AnyCancellable>()
  6. let session = URLSession(configuration: .ephemeral)
  7. var domain: String { MastodonSDKTests.environmentVariable(key: "domain") }
  8. // TODO: replace with test account token
  9. var testToken = ""
  10. static func environmentVariable(key: String) -> String {
  11. return ProcessInfo.processInfo.environment[key]!
  12. }
  13. }