From 7245d320abc1f65956cf4aa9c449e86affe7d1ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20Schl=C3=BCter?= Date: Wed, 22 Aug 2018 09:22:04 +0200 Subject: [PATCH] Add positive test for next song on song end to test group --- test/cljs/airsonic_ui/events_test.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cljs/airsonic_ui/events_test.cljs b/test/cljs/airsonic_ui/events_test.cljs index 1d193b3..ef8abd9 100644 --- a/test/cljs/airsonic_ui/events_test.cljs +++ b/test/cljs/airsonic_ui/events_test.cljs @@ -139,5 +139,5 @@ (deftest 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 (dispatches? (events/audio-update {} [:audio/update {:ended? true}]) ::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))))