File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,9 @@ E.g. should complete \"Array.\" to all properties."
4646 (sit-for 1 )
4747 (insert " Array." )
4848 (completion-at-point )
49- (minibuffer-next-completion)
50- (minibuffer-choose-completion)
49+ (with-minibuffer-completions-window
50+ (next-completion 1 )
51+ (choose-completion ))
5152 (should (looking-back " Array.__proto__" ))))
5253
5354(ert-deftest js-comint/test-capf-complete-long-line ()
@@ -59,8 +60,9 @@ E.g. 'if (true) { console.'"
5960 (sit-for 1 )
6061 (insert " if (true) { console." )
6162 (completion-at-point )
62- (minibuffer-next-completion)
63- (minibuffer-choose-completion)
63+ (with-minibuffer-completions-window
64+ (next-completion 1 )
65+ (choose-completion ))
6466 (should (looking-back " console.__proto__" ))))
6567
6668(ert-deftest-async js-comint/test-capf-no-props (done)
You can’t perform that action at this time.
0 commit comments