Fork me on GitHub
#clj-kondo
<
2023-07-13
>
mkvlr10:07:38

running into this warning:

(deftest offset
  (let [!offset (atom 0)]
    (testing "has correct values"
      (is (= 0 @!offset))
      (swap! !offset inc) ;; TRIGGERS warning: missing test assertion
      (is (= 1 @!offset)))))
should I split this up into two testing blocks?

borkdude10:07:18

I think I've already fixed this one on master, let me check

borkdude10:07:41

what version are you using

borkdude10:07:01

I think it might already be fixed in the latest release btw

mkvlr19:07:23

thank you, can confirm it’s fixed after an upgrade

🎉 2