aboutsummaryrefslogtreecommitdiff
path: root/compat/lustre_websocket/test/lustre_websocket_test.gleam
blob: 2ce0f904147a99d06b4573daed5956b45f15435d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gleeunit
import lustre_websocket as ws

pub fn main() {
  gleeunit.main()
}

pub type Wrapper {
  Wrapper(ws.WebSocketEvent)
}

pub fn rather_thin_compilation_test() {
  let _cmd = ws.init("/blah", Wrapper)
  // We cannot run the resulting lustre.Cmd, but we can at least ensure it can be used/compiled this way
}