Fixed filter-landmarks tests.

This commit is contained in:
John Wiseman 2020-02-05 11:01:05 -08:00
parent 8e88b8771f
commit 0eb2a425f7

View File

@ -161,13 +161,13 @@
(deftest filter-landmarks
(testing "filter-landmarks"
(let [landmarks [{:features {:name "Johnny Depp"}}
{:features {:name "Musso & Frank's"}}
{:features {:name "Johnny Depp's Star"}}]]
(let [landmarks [{:properties {:name "Johnny Depp"}}
{:properties {:name "Musso & Frank's"}}
{:properties {:name "Johnny Depp's Star"}}]]
(is (= (circlebot/filter-landmarks {:blocklist ["Johnny Depp"]}
landmarks)
[{:features {:name "Musso & Frank's"}}]))
[{:properties {:name "Musso & Frank's"}}]))
(is (= (circlebot/filter-landmarks {:blocklist ["Frank"]}
landmarks)
[{:features {:name "Johnny Depp"}}
{:features {:name "Johnny Depp's Star"}}])))))
[{:properties {:name "Johnny Depp"}}
{:properties {:name "Johnny Depp's Star"}}])))))