Skip to content

Commit

Permalink
Add test description
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorlu committed Aug 4, 2024
1 parent 2bbb451 commit b31fda1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test/babashka/neil/dep_upgrade_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,11 @@
:unstable true})))

(deftest neil-dep-upgrade-does-not-change-git-urls
(let [original-git-url "https://github.com/babashka/babashka.pods"
original-deps {:deps {'babashka/pods {:git/url original-git-url
:git/sha "6ad6045b94bc871c5107bfc75d39643b6c1bc8ba"}}}]
(spit test-file-path original-deps)
(test-util/neil "dep upgrade" :test-file-path test-file-path)
(is (= original-git-url
(:git/url (get-dep-version 'babashka/pods))))))
(testing "When we upgrade a dep with :git/url, we don't want that git url shall not change."
(let [original-git-url "https://github.com/babashka/babashka.pods"
original-deps {:deps {'babashka/pods {:git/url original-git-url
:git/sha "6ad6045b94bc871c5107bfc75d39643b6c1bc8ba"}}}]
(spit test-file-path original-deps)
(test-util/neil "dep upgrade" :test-file-path test-file-path)
(is (= original-git-url
(:git/url (get-dep-version 'babashka/pods)))))))

0 comments on commit b31fda1

Please sign in to comment.