aboutsummaryrefslogtreecommitdiff
path: root/test/emacs-hnreader-test.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/emacs-hnreader-test.el')
-rw-r--r--test/emacs-hnreader-test.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/emacs-hnreader-test.el b/test/emacs-hnreader-test.el
new file mode 100644
index 0000000..a2d40d6
--- /dev/null
+++ b/test/emacs-hnreader-test.el
@@ -0,0 +1,11 @@
+;;; emacs-hnreader-test.el --- Tests for emacs-hnreader
+(ert-deftest-async test/promise-dom (done)
+ (promise-done
+ (promise-chain
+ (hnreader--promise-dom "https://www.google.com")
+ (then (lambda (result)
+ (should (listp result))
+ ;; (message "%s" result)
+ (funcall done)))
+ (promise-catch done))))
+;;; emacs-hnreader-test.el ends here