Fix treesit-tests
authorEli Zaretskii <eliz@gnu.org>
Mon, 10 Jun 2024 18:22:47 +0000 (21:22 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 10 Jun 2024 18:22:47 +0000 (21:22 +0300)
* test/src/treesit-tests.el (treesit-node-api): Adapt the test to
changes in 'treesit_check_node'.  (Bug#71012)

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