Skip to content

Commit d75db80

Browse files
Update README.md
1 parent b4c91ce commit d75db80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ If you spy on a function that throws an exception then Spy will catch your excep
155155

156156
### Using with-redefs to replace functions with spies
157157

158-
If you are testing synchronous code then you can replace functions using [with-redefs](https://clojuredocs.org/clojure.core/with-redefs), if you're testing async code then it's safer to pass the functions in using dependency injection. If you want to see more examples of this checkout this excellent blog post about [TDD in Clojure](https://engineering.fundingcircle.com/blog/2016/01/11/tdd-in-clojure/).
158+
If you are testing synchronous code then you can replace functions using [with-redefs](https://clojuredocs.org/clojure.core/with-redefs), if you're testing async code then it's safer to pass the functions in using dependency injection, I don't recommend using ~with-redefs~.
159159

160160
```clojure
161161
(ns spy-example.core-test
@@ -194,9 +194,9 @@ If you are testing synchronous code then you can replace functions using [with-r
194194
(is (spy/not-called? send-message)))))
195195
```
196196

197-
### Protocols (Experimental)
197+
### Protocols
198198

199-
Currently only Clojure is supported, I intend to make this work for ClojureScript too but it's a little trickier. I'm open to suggestions on how to improve this and support ClojureScript, contributions are welcome.
199+
Currently, only Clojure is supported. I'm open to suggestions on how to support ClojureScript, contributions are welcome.
200200

201201
`spy.protocol/mock` uses the same signature as `reify` and can be used
202202
to mock multiple protocols.

0 commit comments

Comments
 (0)