aboutsummaryrefslogtreecommitdiff
path: root/compat/lustre_http/test/lustre_http_test.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'compat/lustre_http/test/lustre_http_test.gleam')
-rw-r--r--compat/lustre_http/test/lustre_http_test.gleam15
1 files changed, 15 insertions, 0 deletions
diff --git a/compat/lustre_http/test/lustre_http_test.gleam b/compat/lustre_http/test/lustre_http_test.gleam
new file mode 100644
index 0000000..e426a70
--- /dev/null
+++ b/compat/lustre_http/test/lustre_http_test.gleam
@@ -0,0 +1,15 @@
+import lustre_http as http
+import gleeunit
+
+pub fn main() {
+ gleeunit.main()
+}
+
+pub type ToMsgProvider {
+ Wrapper(http.StringResult)
+}
+
+// We cannot run the resulting lustre.Cmd, but we can at least ensure it can be used/compiled this way
+pub fn compilation_test() {
+ http.get_as_text("http://localhost:8080/not_here", Wrapper)
+}