Skip to content

Commit 2bc3d2c

Browse files
authored
Fixes #275 by clarifying the example
Add integration-level test for fetch-users function.
1 parent 5f391d4 commit 2bc3d2c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎README.adoc‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3494,6 +3494,9 @@ instead.
34943494
(fetch-users (constantly [{:name "Bruce"}])))))
34953495
34963496
;; ok for integration-level tests
3497+
(defn fetch-users []
3498+
(http/get "/api/users"))
3499+
34973500
(deftest fetch-users-integration-test
34983501
(with-redefs [http/get (constantly {:body [{:name "Bruce"}]})]
34993502
(is (= [{:name "Bruce"}] (fetch-users)))))

0 commit comments

Comments
 (0)