diff options
| author | eltrac <hi@eltr.ac> | 2026-10-10 16:20:44 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-10-10 16:20:44 +0800 |
| commit | 5b1dcc98df2c9d8dac0dfa8e69f25b89b00bb334 (patch) | |
| tree | f745e01c7003a1dbd0de679fde57fb467fe4e710 /test | |
| parent | e980e902b8dce11bde7a808978e95be1c755532d (diff) | |
test, doc: fix failed tests; update coverage badge manually
Diffstat (limited to 'test')
| -rw-r--r-- | test/weepinbell/handler_test.clj | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/weepinbell/handler_test.clj b/test/weepinbell/handler_test.clj index 22697b5..754444c 100644 --- a/test/weepinbell/handler_test.clj +++ b/test/weepinbell/handler_test.clj @@ -52,11 +52,12 @@ (testing "/api/count?url= route" (let [response ((test-app nil {:get-by-domain - (fn [_] [])} + (fn [_] [{:webmention {:source "1" + :target "http://localhost"}}])} {}) (mock/request :get "/api/count?url=http://localhost"))] (is (= (:status response) 200)) - (is (= 0 (-> response :body parse-string (get "count") Long.))))) + (is (= 1 (-> response :body parse-string (get "count") Long.))))) (testing "/api/mention/:id" (let [response ((test-app nil {:get (fn [_] |
