Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed May 6, 2022
1 parent e0043a7 commit 413a68d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions components/markdown/tests/common.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![allow(dead_code)]

use std::collections::HashMap;
use std::path::PathBuf;

use libs::tera::Tera;

Expand Down Expand Up @@ -58,8 +57,7 @@ fn configurable_render(

tera.register_filter(
"markdown",
templates::filters::MarkdownFilter::new(PathBuf::new(), config.clone(), permalinks.clone())
.unwrap(),
templates::filters::MarkdownFilter::new(config.clone(), permalinks.clone(), tera.clone())
);
let mut context = RenderContext::new(
&tera,
Expand Down

0 comments on commit 413a68d

Please sign in to comment.