Skip to content

Commit 476f724

Browse files
Fix Emacs unit test (#1922)
The Eglot package updated and this is now a list.
1 parent 7916a0c commit 476f724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/emacs-test.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
(should (eglot-current-server))
5959
(let ((lsp (eglot-current-server)))
6060
(should (string= (oref lsp project-nickname) "PowerShellEditorServices"))
61-
(should (eq (oref lsp major-mode) 'powershell-mode))
61+
(should (member 'powershell-mode (oref lsp major-modes)))
6262
(should (string= (oref lsp language-id) "powershell")))
6363
(sleep-for 5) ; TODO: Wait for "textDocument/publishDiagnostics" instead
6464
(flymake-start)

0 commit comments

Comments
 (0)