]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix treesit-tests
authorEli Zaretskii <eliz@gnu.org>
Mon, 10 Jun 2024 18:22:47 +0000 (21:22 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Jun 2024 09:27:00 +0000 (11:27 +0200)
* test/src/treesit-tests.el (treesit-node-api): Adapt the test to
changes in 'treesit_check_node'.  (Bug#71012)

(cherry picked from commit ffd2c492a0e0f70a66f113fe4ea9c50081818a44)

test/src/treesit-tests.el

index 5d0c92ae8a6a52f4b15c8673296e938848802f3e..ce5dc76794ab6190b8d4f9569b537dab8a4c713c 100644 (file)
                        parser))
       (should (equal t (treesit-node-check root-node 'live)))
       (kill-buffer)
-      (should (equal nil (treesit-node-check root-node 'live))))))
+      (should-error (treesit-node-check root-node 'live)
+                    :type 'treesit-node-buffer-killed))))
 
 ;;; Indirect buffer