Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removing equatable from FakeAction
  • Loading branch information
obj-p committed Apr 17, 2019
commit a671f34830bcffbdc60534271b75b41ebc3316db
8 changes: 5 additions & 3 deletions ReSwift-ThunkTests/Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import XCTest
import ReSwift

private struct FakeState: StateType {}
private struct FakeAction: Action, Equatable {}
private struct FakeAction: Action {}
private struct AnotherFakeAction: Action, Equatable {}
private func fakeReducer(action: Action, state: FakeState?) -> FakeState {
return state ?? FakeState()
Expand Down Expand Up @@ -72,10 +72,12 @@ class Tests: XCTestCase {
dispatch(FakeAction())
}
let expect = ExpectThunk(thunk)
.dispatches(FakeAction())
.dispatches {
XCTAssert($0 is FakeAction)
}
.getsState(FakeState())
.dispatches {
XCTAssert($0 as? FakeAction == FakeAction())
XCTAssert($0 is FakeAction)
}
.dispatches(AnotherFakeAction())
.getsState(FakeState())
Expand Down