We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fa6fca commit eef56c1Copy full SHA for eef56c1
src/main/cljs/cljs/test.clj
@@ -194,9 +194,10 @@
194
([string & body]
195
`(do
196
(cljs.test/update-current-env! [:testing-contexts] conj ~string)
197
- (let [ret# (do ~@body)]
198
- (cljs.test/update-current-env! [:testing-contexts] rest)
199
- ret#))))
+ (try
+ ~@body
+ (finally
200
+ (cljs.test/update-current-env! [:testing-contexts] rest))))))
201
202
;; =============================================================================
203
;; Defining Tests
0 commit comments