Skip to content

Commit 6a45440

Browse files
committed
Render reports with exceptions and expected better
Currently if a report contains an exception then the left-hand-side diff panel is hidden and only the exception is rendered. This change first checks if there is also an `expected` side to the report and if so will continue to render it.
1 parent a681ddf commit 6a45440

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lua/clojure-test/ui/init.lua

+7
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ local function handle_on_move(UI, event)
2525
if node.assertion then
2626
if node.assertion.exceptions then
2727
vim.schedule(function()
28+
if node.assertion.expected then
29+
layout:render_double()
30+
write_clojure_to_buf(layout.windows.left.bufnr, node.assertion.expected)
31+
exceptions.render_exceptions_to_buf(layout.windows.right.bufnr, node.assertion.exceptions)
32+
return
33+
end
34+
2835
layout:render_single()
2936
exceptions.render_exceptions_to_buf(layout.windows.right.bufnr, node.assertion.exceptions)
3037
end)

0 commit comments

Comments
 (0)