Fix test-raise.
This commit is contained in:
parent
a5556637e8
commit
72f7c8e1a3
1 changed files with 3 additions and 2 deletions
|
@ -14,7 +14,8 @@
|
||||||
(let [caught
|
(let [caught
|
||||||
(try
|
(try
|
||||||
(do
|
(do
|
||||||
(util/raise "succeed" {})
|
(util/raise "succeed" {:foo 1})
|
||||||
"fail")
|
"fail")
|
||||||
(catch :default e e))]
|
(catch :default e e))]
|
||||||
(is (= "succeed" (aget caught "data"))))))
|
(is (= "succeed" (aget caught "message")))
|
||||||
|
(is (= {:foo 1} (aget caught "data"))))))
|
||||||
|
|
Loading…
Reference in a new issue