From 6d295d0bcf23bb4410d6d93435ce53f9670a1d1c Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Wed, 23 Aug 2023 23:13:52 +0100 Subject: :ambulance: Update third-party lustre_http package to new api. --- compat/lustre_http/test/lustre_http_test.gleam | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 compat/lustre_http/test/lustre_http_test.gleam (limited to 'compat/lustre_http/test/lustre_http_test.gleam') 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) +} -- cgit v1.2.3