Skip to content

Commit

Permalink
remove RxCocoa from test
Browse files Browse the repository at this point in the history
  • Loading branch information
marty-suzuki committed Oct 25, 2019
1 parent 2b93a5f commit 9536d50
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions UnioTests/TestCases/WrappersTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// Copyright © 2019 tv.abema. All rights reserved.
//

import RxCocoa
import RxRelay
import RxSwift
import XCTest
Expand Down Expand Up @@ -52,10 +51,10 @@ final class WrappersTests: XCTestCase {

#if swift(>=5.1)
let disposable2 = Observable.just(expected)
.bind(to: testTarget.subject)
.subscribe(testTarget.subject.on)
#else
let disposable2 = Observable.just(expected)
.bind(to: testTarget.onEvent(for: \.subject))
.subscribe(testTarget.onEvent(for: \.subject).on)
#endif

XCTAssertEqual(stack.value, expected)
Expand Down Expand Up @@ -95,10 +94,10 @@ final class WrappersTests: XCTestCase {

#if swift(>=5.1)
let disposable2 = Observable.just(expected)
.bind(to: testTarget.relay)
.subscribe(onNext: testTarget.relay)
#else
let disposable2 = Observable.just(expected)
.bind(to: testTarget.accept(for: \.relay))
.subscribe(onNext: { testTarget.accept($0, for: \.relay) })
#endif

XCTAssertEqual(stack.value, expected)
Expand Down

0 comments on commit 9536d50

Please sign in to comment.