mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-21 13:38:21 -05:00
✅ test(integration): fix the integration by providing an extra function argument (#424)
This commit is contained in:
parent
c0d2d1ac65
commit
9a4e450766
@ -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…
Reference in New Issue
Block a user