diff options
author | Sean Allred <code@seanallred.com> | 2015-01-02 12:05:43 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2015-01-02 12:05:43 -0500 |
commit | 51fd9620672ce656a0c660ad9e3a940cc9b435f3 (patch) | |
tree | 028d2962b52f3f01338bc856f36098c759887842 /test | |
parent | e05f937910bb4ca0e7ea1c9f1273fbafac523921 (diff) | |
parent | a11be51a7aa5ea26e3d55383d328a0624b924125 (diff) |
Merge pull request #174 from vermiculus/inbox
Implement inbox
Diffstat (limited to 'test')
-rw-r--r-- | test/data-samples/inbox-item.el | 13 | ||||
-rw-r--r-- | test/test-macros.el | 4 |
2 files changed, 15 insertions, 2 deletions
diff --git a/test/data-samples/inbox-item.el b/test/data-samples/inbox-item.el new file mode 100644 index 0000000..faeba12 --- /dev/null +++ b/test/data-samples/inbox-item.el @@ -0,0 +1,13 @@ +((title . "Can I mark inbox items as read in api v2.2?") + (link . "http://stackapps.com/posts/comments/12080?noredirect=1") + (item_type . "comment") + (question_id . 5059) + (comment_id . 12080) + (creation_date . 1419153905) + (is_unread . :json-false) + (site (site_type . "main_site") + (name . "Stack Apps") + (api_site_parameter . "stackapps") + (site_url . "http://stackapps.com") + (favicon_url . "http://cdn.sstatic.net/stackapps/img/favicon.ico") + (styling (link_color . "#0077DD") (tag_foreground_color . "#555555") (tag_background_color . "#E7ECEC")))) diff --git a/test/test-macros.el b/test/test-macros.el index 2169088..b6bf20b 100644 --- a/test/test-macros.el +++ b/test/test-macros.el @@ -9,11 +9,11 @@ "Test `sx-assoc-let'" (sx-test-with-json-data data (should - (null (let-alist data .site)))) + (null (let-alist data .site_par)))) (sx-test-with-json-data data (should - (equal (sx-assoc-let data .site) + (equal (sx-assoc-let data .site_par) "meta.emacs"))) (sx-test-with-json-data data |