0
0
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:
neon_arch 2023-12-11 21:15:11 +03:00
parent c0d2d1ac65
commit 9a4e450766

View File

@ -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);
}