Skip to content

Commit 6790594

Browse files
committed
Fix Emacs end-to-end test
The way the class properties are accessed changed.
1 parent 11837b9 commit 6790594

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: test/emacs-test.el

+2-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@
5959
(should (apply #'eglot--connect (eglot--guess-contact)))
6060
(should (eglot-current-server))
6161
(let ((lsp (eglot-current-server)))
62-
(should (string= (oref lsp project-nickname) "PowerShellEditorServices"))
63-
(should (member 'powershell-mode (oref lsp major-modes)))
64-
(should (string= (oref lsp language-id) "powershell")))
62+
(should (string= (eglot--project-nickname lsp) "PowerShellEditorServices"))
63+
(should (member (cons 'powershell-mode "powershell") (eglot--languages lsp))))
6564
(sleep-for 5) ; TODO: Wait for "textDocument/publishDiagnostics" instead
6665
(flymake-start)
6766
(goto-char (point-min))

0 commit comments

Comments
 (0)