Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Feb 29, 2024
1 parent a660df0 commit 8cbb77e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/babashka/neil/dep_add_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

(deftest latest-version-test
(is (= "1.0.5" (neil/latest-stable-clojars-version 'hiccup/hiccup)))
(is (= "2.0.0-RC2" (neil/latest-clojars-version 'hiccup/hiccup)))
(is (= "2.0.0-RC3" (neil/latest-clojars-version 'hiccup/hiccup)))
(is (= "1.11.1" (neil/latest-stable-mvn-version 'org.clojure/clojure))))
4 changes: 2 additions & 2 deletions test/babashka/neil/dep_upgrade_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
(is (not (:git/tag kondo-upgrade)) ", there is no tag.")))

(testing "when --unstable is set, upgrade to unstable hiccup versions"
(is (= {:mvn/version "2.0.0-RC2"}
(is (= {:mvn/version "2.0.0-RC3"}
(neil/dep->upgrade {:lib 'hiccup/hiccup
:current {:mvn/version "1.0.0"}
:unstable true})))))
Expand All @@ -240,7 +240,7 @@
clojure2d/clojure2d {:mvn/version \"1.4.4\"
:exclusions [org.apache.xmlgraphics/batik-transcoder]}
}}")
(test-util/neil "dep dep upgrade" :deps-file test-file-path)
(test-util/neil "dep upgrade" :deps-file test-file-path)
(let [clojure2d-exclusions (fn [] (:exclusions (get-dep-version 'clojure2d/clojure2d)))]
(is (clojure2d-exclusions) "Exclusions are present before upgrading")
(test-util/neil "dep upgrade" :deps-file test-file-path)
Expand Down

0 comments on commit 8cbb77e

Please sign in to comment.