blob: c62fc062791f2c38a2d9747c9c7d361f211f17cf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
;;; emacs-hnreader-test.el --- Tests for emacs-hnreader
(ert-deftest-async test/promise-dom (done)
(promise-done
(promise-chain
(hnreader--promise-dom "https://news.ycombinator.com/news")
(then (lambda (result)
(should (listp result))
;; (message "%s" result)
(funcall done)))
(promise-catch done))))
;;; emacs-hnreader-test.el ends here
|