diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2023-08-23 23:13:52 +0100 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2023-08-23 23:13:52 +0100 |
commit | 6d295d0bcf23bb4410d6d93435ce53f9670a1d1c (patch) | |
tree | 33ac9652ed41109d425210fabdaf638f92952f0b /compat/lustre_http/test | |
parent | c0a3607d41dd24b9ea03425892a361261893d076 (diff) | |
download | lustre-6d295d0bcf23bb4410d6d93435ce53f9670a1d1c.tar.gz lustre-6d295d0bcf23bb4410d6d93435ce53f9670a1d1c.zip |
:ambulance: Update third-party lustre_http package to new api.
Diffstat (limited to 'compat/lustre_http/test')
-rw-r--r-- | compat/lustre_http/test/lustre_http_test.gleam | 15 |
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) +} |