Spaces:
Runtime error
Runtime error
neon_arch
commited on
Commit
•
9a4e450
1
Parent(s):
c0d2d1a
✅ test(integration): fix the integration by providing an extra function argument (#424)
Browse files- tests/index.rs +6 -1
tests/index.rs
CHANGED
@@ -24,7 +24,12 @@ async fn test_index() {
|
|
24 |
assert_eq!(res.status(), 200);
|
25 |
|
26 |
let config = Config::parse(true).unwrap();
|
27 |
-
let template = views::index::index(
|
|
|
|
|
|
|
|
|
|
|
28 |
assert_eq!(res.text().await.unwrap(), template);
|
29 |
}
|
30 |
|
|
|
24 |
assert_eq!(res.status(), 200);
|
25 |
|
26 |
let config = Config::parse(true).unwrap();
|
27 |
+
let template = views::index::index(
|
28 |
+
&config.style.colorscheme,
|
29 |
+
&config.style.theme,
|
30 |
+
&config.style.animation,
|
31 |
+
)
|
32 |
+
.0;
|
33 |
assert_eq!(res.text().await.unwrap(), template);
|
34 |
}
|
35 |
|