Fixes to the phone tag

This commit is contained in:
Simon Brooke 2018-08-28 16:20:38 +01:00
parent 8598463ec7
commit 50d50aab94
3 changed files with 11 additions and 4 deletions

View file

@ -10,7 +10,10 @@
(let [expected {:id 67 :offset 0 :limit 50}
actual (massage-params {:params {:id "0" :offset "1000" :limit "150"}
:form-params {:id "67" :offset "0" :limit "50"}})]
(is (= expected actual) "Request with form params, params and form params differ"))))
(is (= expected actual) "Request with form params, params and form params differ"))
(let [expected {:phone "07777 888999"}
actual (massage-params {:params {:phone "07777 888999"}})]
(is (= expected actual) "A phone number with a space in needs to be treated as a string"))))
(deftest compose-exception-reason-tests