diff options
author | Tianxiang Xiong <tianxiang.xiong@fundingcircle.com> | 2018-01-24 11:33:11 -0800 |
---|---|---|
committer | Bozhidar Batsov <bozhidar.batsov@gmail.com> | 2018-01-24 22:28:26 +0200 |
commit | 9381fc20517c702b88866c8af8c1d49857e581c0 (patch) | |
tree | 097053126af299e457acc5984f53068998171859 /cider-test.el | |
parent | a34c8b088ef05a3626507180ef2b1daeed29e586 (diff) |
Check `actual` before insert in `cider-test-render-assertion`
Fix #2178
Diffstat (limited to 'cider-test.el')
-rw-r--r-- | cider-test.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cider-test.el b/cider-test.el index 9c3f4b32..ad14dcaf 100644 --- a/cider-test.el +++ b/cider-test.el @@ -409,8 +409,9 @@ With the actual value, the outermost '(not ...)' s-expression is removed." (insert-align-label "+ ") (insert-rect added) (insert "\n"))) - (insert-label "actual") - (insert-rect actual)) + (when actual + (insert-label "actual") + (insert-rect actual))) (when error (insert-label "error") (insert-text-button error |