              :month-name "April", :day "02", :month "04", :year "2014"}])))
 
   (testing "sidebar-archive-data"
-    (is (= (sidebar-archive-data test-article-names)
+    (is (= (sidebar-archive-data db-component test-article-names)
            [{:code "2014-05", :title "",
              :month-name "May", :month "05", :year "2014"}
             {:code "2014-04", :title "",

                       "2014-04-02-first-post.md"]})))

  (testing "sidebar-recent-article-data"
    (is (= (sidebar-recent-article-data test-article-names)
           [{:code "2014-05-01-next-post", :title "Next Post",
             :month-name "May", :day "01", :month "05", :year "2014"}
            {:code "2014-04-15-april-post", :title "April Post",

(ns blog.article.article-file-datastore-impl-test
  (:require [clojure.test :refer :all]
            [blog.article.article-file-datastore-impl :refer :all]))

(def db-component {:recent-articles 5})

(def test-article-names
  ["2014-05-01-next-post.md"
