aboutsummaryrefslogtreecommitdiff
path: root/compat/lustre_http/test/lustre_http_test.gleam
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2023-08-23 23:13:52 +0100
committerHayleigh Thompson <me@hayleigh.dev>2023-08-23 23:13:52 +0100
commit6d295d0bcf23bb4410d6d93435ce53f9670a1d1c (patch)
tree33ac9652ed41109d425210fabdaf638f92952f0b /compat/lustre_http/test/lustre_http_test.gleam
parentc0a3607d41dd24b9ea03425892a361261893d076 (diff)
downloadlustre-6d295d0bcf23bb4410d6d93435ce53f9670a1d1c.tar.gz
lustre-6d295d0bcf23bb4410d6d93435ce53f9670a1d1c.zip
:ambulance: Update third-party lustre_http package to new api.
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)
+}