Skip to content

Commit

Permalink
Update IcedTestNs to reload ns to match IcedTestUnderCursor's behav…
Browse files Browse the repository at this point in the history
…ior #292
  • Loading branch information
liquidz committed May 22, 2021
1 parent 75ab190 commit bab4b73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/iced/nrepl/test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ function! iced#nrepl#test#ns() abort
if !iced#nrepl#is_connected() | return iced#message#error('not_connected') | endif
let ns = iced#nrepl#ns#name()

" NOTE: Reload ns to match iced#nrepl#test#under_cursor's behavior
call iced#repl#execute('load_current_file')

if iced#nrepl#is_supported_op('test-var-query')
return iced#promise#call('iced#nrepl#test#test_vars_by_ns_name', [ns])
\.then(funcref('s:__ns', [ns]))
Expand Down

0 comments on commit bab4b73

Please sign in to comment.