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:
parent
a4366fbcb0
commit
a01a419a7d
1 changed files with 2 additions and 2 deletions
|
|
@ -35,11 +35,11 @@
|
||||||
(let [credentials {:server "http://localhost"
|
(let [credentials {:server "http://localhost"
|
||||||
:u "another-user"
|
:u "another-user"
|
||||||
:p "some_random_password123"}
|
: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"
|
(testing "the auth request is skipped"
|
||||||
(is (nil? (:http-xhrio fx))))
|
(is (nil? (:http-xhrio fx))))
|
||||||
(testing "we get sent straight to the home page"
|
(testing "we get sent straight to the home page"
|
||||||
(is (= ::events/credentials-verified (first (:dispatch fx)))))))
|
(is (= ::events/credentials-verified (first (:dispatch fx)))))))
|
||||||
(testing "When there's no previous login data"
|
(testing "When there's no previous login data"
|
||||||
(testing "remembering has no effect"
|
(testing "remembering has no effect"
|
||||||
(is (nil? (events/try-remember-user {}))))))
|
(is (nil? (events/try-remember-user {} [:_]))))))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue