Skip to content

Commit

Permalink
Merge pull request #277 from saidone75/dev
Browse files Browse the repository at this point in the history
find-people-test
  • Loading branch information
saidone75 authored May 29, 2024
2 parents 192d75c + 42c8648 commit 392b906
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/cral/queries_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,11 @@
(let [ticket (get-in (auth/create-ticket c/user c/password) [:body :entry])
find-sites-response (->> (model/map->FindSitesQueryParams {:term "sws"})
(queries/find-sites ticket))]
(is (= (:status find-sites-response) 200))))
(is (= (:status find-sites-response) 200))))

(deftest find-people-test
(let [ticket (get-in (auth/create-ticket c/user c/password) [:body :entry])
find-people-response (->> (model/map->FindPeopleQueryParams {:term "ad*"})
(queries/find-people ticket))]
(is (not (empty? (get-in find-people-response [:body :list :entries]))))
(is (= (:status find-people-response) 200))))

0 comments on commit 392b906

Please sign in to comment.