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

Add positive test for next song on song end to test group

This commit is contained in:
Arne Schlüter 2018-08-22 09:22:04 +02:00
commit 7245d320ab

View file

@ -139,5 +139,5 @@
(deftest song-has-ended (deftest song-has-ended
(testing "Should play the next song when current song has ended" (testing "Should play the next song when current song has ended"
(is (not (dispatches? (events/audio-update {} [:audio/update {:ended? false}]) ::events/next-song)))) (is (not (dispatches? (events/audio-update {} [:audio/update {:ended? false}]) ::events/next-song)))
(is (dispatches? (events/audio-update {} [:audio/update {:ended? true}]) ::events/next-song))) (is (dispatches? (events/audio-update {} [:audio/update {:ended? true}]) ::events/next-song))))