aboutsummaryrefslogtreecommitdiff
path: root/test/ert-helper.el
diff options
context:
space:
mode:
authorAbhiseck Paira <abhiseckpaira@disroot.org>2022-01-26 21:18:21 +0530
committerAbhiseck Paira <abhiseckpaira@disroot.org>2022-01-27 18:42:06 +0530
commit2cc711a12307b2f61d42233d0d3619ccd8f434ea (patch)
tree1eaa4f11a585020dd558ef4c7e5a0c33e60647df /test/ert-helper.el
parente9e09b44cf2e194f317073f7db192e6eb79759e7 (diff)
test: change mastodon files loading order
Before tests start test/ert-helper.el file is loaded which in turn loads other lisp/* files so that required functions and variables are defined during tests. Load lisp/mastodon.el file first before loading other files this solves the complain during tests that `mastodon-active-user' is not defined.
Diffstat (limited to 'test/ert-helper.el')
-rw-r--r--test/ert-helper.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ert-helper.el b/test/ert-helper.el
index a6d6692..fc4da2d 100644
--- a/test/ert-helper.el
+++ b/test/ert-helper.el
@@ -1,3 +1,4 @@
+(load-file "lisp/mastodon.el")
(load-file "lisp/mastodon-search.el")
(load-file "lisp/mastodon-async.el")
(load-file "lisp/mastodon-http.el")
@@ -11,4 +12,3 @@
(load-file "lisp/mastodon-search.el")
(load-file "lisp/mastodon-tl.el")
(load-file "lisp/mastodon-toot.el")
-(load-file "lisp/mastodon.el")