parent
d85e0acde0
commit
f98f0a617f
@ -1,14 +0,0 @@
|
|||||||
(ns wanijo.handler-test
|
|
||||||
(:require [clojure.test :refer :all]
|
|
||||||
[ring.mock.request :as mock]
|
|
||||||
[wanijo.handler :refer :all]))
|
|
||||||
|
|
||||||
(deftest test-app
|
|
||||||
(testing "main route"
|
|
||||||
(let [response (app (mock/request :get "/"))]
|
|
||||||
(is (= (:status response) 200))
|
|
||||||
(is (= (:body response) "Hello World"))))
|
|
||||||
|
|
||||||
(testing "not-found route"
|
|
||||||
(let [response (app (mock/request :get "/invalid"))]
|
|
||||||
(is (= (:status response) 404)))))
|
|
Loading…
Reference in new issue