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
adding blurb about ExpectThunk subspec
  • Loading branch information
obj-p committed Jun 11, 2019
commit ff7234f07cab9e63a40b913431f31f117c002b5b
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ store.dispatch(thunkWithParams(10))

## Testing

The `ExpectThunk` helper, available as a CocoaPods subspec, allows for testing the order and actions of `dispatch` as well as the dependencies on `getState` in a thunk.
The `ExpectThunk` helper, available as a CocoaPods subspec, allows for testing the order and actions of `dispatch` as well as the
dependencies on `getState`.

```swift
ExpectThunk(thunk)
Expand All @@ -82,6 +83,7 @@ ReSwift-Thunk requires the [ReSwift](https://github.com/ReSwift/ReSwift/) base m
### CocoaPods

You can install ReSwift-Thunk via CocoaPods by adding it to your `Podfile`:

```
target 'TARGET' do
pod 'ReSwiftThunk'
Expand All @@ -94,6 +96,11 @@ end

And run `pod install`.

#### A Note on Including ExpectThunk

If the `ExpectThunk` subspec is used, the tests target cannot be nested in another target due to current limitations. The tests target must
be a standalone target as shown in the snippet above.

### Carthage

You can install ReSwift-Thunk via [Carthage](https://github.com/Carthage/Carthage) by adding the following line to your `Cartfile`:
Expand Down