       File.rm_rf!(Path.join(tmp_dir, "includes"))
 
       {:ok, %{pages: pages, posts: [], templates: temps, includes: []}} =
-        FileLoader.load_files(tmp_dir, %Theme{})
+        FileLoader.load_files(tmp_dir)
 
       assert length(pages) === 1
       assert length(temps) === 4

    test "pages directory is missing", %{tmp_dir: tmp_dir} do
      File.rm_rf!(Path.join(tmp_dir, "pages"))

      {:error, {:enoent, _, _}} = FileLoader.load_files(tmp_dir, %Theme{})
    end

    test "some templates are missing", %{tmp_dir: tmp_dir} do
      File.rm_rf!(Path.join(tmp_dir, "templates/base.html.eex"))

      {:error, {_, [{:error, {:enoent, _, _}} | _]}} = FileLoader.load_files(tmp_dir, %Theme{})
    end
  end
end

  describe "load_files/1" do
    test "successfully loaded files", %{tmp_dir: tmp_dir} do
      {:ok, %{pages: pages, posts: posts, templates: temps, includes: incls}} =
        FileLoader.load_files(tmp_dir)

      assert length(pages) === 1
      assert length(posts) === 1
