Skip to content

Commit

Permalink
Remember to stub fetch/templates in login test
Browse files Browse the repository at this point in the history
  • Loading branch information
heralden committed Nov 19, 2021
1 parent 32b3729 commit d3fec5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/cljs/bluegenes/events_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
(utils/stub-local-storage)
;; Starting the router causes a crash here, so change it to noop.
(rf/reg-event-fx :bluegenes.events.boot/start-router (fn [] {}))
(with-redefs [fetch/lists (utils/stub-fetch-fn [])
auth/who-am-i? (utils/stub-fetch-fn {})
(with-redefs [fetch/lists (utils/stub-fetch-fn [])
fetch/templates (utils/stub-fetch-fn {})
auth/who-am-i? (utils/stub-fetch-fn {})
config/init-vars (delay nil)]
(rf/dispatch [:bluegenes.events.auth/login-success
{:identity {:token "login-token"}}])
Expand Down

0 comments on commit d3fec5c

Please sign in to comment.