aboutsummaryrefslogtreecommitdiff
path: root/compat/lustre_http/test/lustre_http_test.gleam
blob: e426a70e5eb14f3b8f8ec8a511564defa832df48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)
}