emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil-nerd-commenter 7132693a4c 196/235: fixed test warning


From: ELPA Syncer
Subject: [nongnu] elpa/evil-nerd-commenter 7132693a4c 196/235: fixed test warning
Date: Thu, 6 Jan 2022 02:59:47 -0500 (EST)

branch: elpa/evil-nerd-commenter
commit 7132693a4cc684dff232839fed45a8a54d832646
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>

    fixed test warning
---
 evil-nerd-commenter-tests.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/evil-nerd-commenter-tests.el b/evil-nerd-commenter-tests.el
index 8a013f3937..bd9b130f73 100644
--- a/evil-nerd-commenter-tests.el
+++ b/evil-nerd-commenter-tests.el
@@ -92,7 +92,8 @@
       (should (string= (nth 1 lines) "hello world"))
       (should (string= (nth 2 lines) "</div> */}"))
       ;; move the cursor to the middle of html tag
-      (goto-line 2)
+      (goto-char (point-min))
+      (forward-line 1)
       ;; uncomment whole tag
       (evilnc-comment-or-uncomment-html-tag)
       (setq lines (evilnc-get-lines (point-min) (point-max)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]