branch: externals/elpa
commit bb51d47dd6e59e5bef1bfb393a39a73a7811d0ee
Author: Felicián Németh <felician.nem...@gmail.com>
Commit: Felicián Németh <felician.nem...@gmail.com>

    Close #409: make a test more robust
    
    See https://github.com/joaotavora/eglot/issues/279#issuecomment-542306382
    
    * eglot-tests.el (snippet-completions): Check location of point as
    well.
---
 eglot-tests.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eglot-tests.el b/eglot-tests.el
index 14e79a9..909770c 100644
--- a/eglot-tests.el
+++ b/eglot-tests.el
@@ -524,8 +524,8 @@ def foobazquuz(d, e, f): pass
       (goto-char (point-max))
       (insert "foobar")
       (completion-at-point)
-      (beginning-of-line)
-      (should (looking-at "foobarquux(a, b)")))))
+      (should (looking-back "foobarquux("))
+      (should (looking-at "a, b)")))))
 
 (defvar company-candidates)
 

Reply via email to