✅ test(integration): fix the integration by providing an extra function argument (#424)
This commit is contained in:
parent
c0d2d1ac65
commit
9a4e450766
1 changed files with 6 additions and 1 deletions
|
@ -24,7 +24,12 @@ async fn test_index() {
|
|||
assert_eq!(res.status(), 200);
|
||||
|
||||
let config = Config::parse(true).unwrap();
|
||||
let template = views::index::index(&config.style.colorscheme, &config.style.theme).0;
|
||||
let template = views::index::index(
|
||||
&config.style.colorscheme,
|
||||
&config.style.theme,
|
||||
&config.style.animation,
|
||||
)
|
||||
.0;
|
||||
assert_eq!(res.text().await.unwrap(), template);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue