1
0
Fork 0
mirror of https://github.com/heyarne/airsonic-ui.git synced 2026-05-06 18:33:38 +02:00

Fix warning that popped up when compiling tests (wrong number of args)

This commit is contained in:
Arne Schlüter 2018-06-02 09:47:35 +02:00
commit a01a419a7d

View file

@ -35,11 +35,11 @@
(let [credentials {:server "http://localhost"
:u "another-user"
:p "some_random_password123"}
fx (events/try-remember-user {:store {:credentials credentials}})]
fx (events/try-remember-user {:store {:credentials credentials}} [:_])]
(testing "the auth request is skipped"
(is (nil? (:http-xhrio fx))))
(testing "we get sent straight to the home page"
(is (= ::events/credentials-verified (first (:dispatch fx)))))))
(testing "When there's no previous login data"
(testing "remembering has no effect"
(is (nil? (events/try-remember-user {}))))))
(is (nil? (events/try-remember-user {} [:_]))))))