diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2023-08-23 23:09:16 +0100 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2023-08-23 23:09:16 +0100 |
commit | c0a3607d41dd24b9ea03425892a361261893d076 (patch) | |
tree | 7387b86b55e48649aa5afb45df37193d72aa930b /compat/lustre_websocket/test/lustre_websocket_test.gleam | |
parent | 21d59712dd56909293b3804b1d89320216f6906a (diff) | |
download | lustre-c0a3607d41dd24b9ea03425892a361261893d076.tar.gz lustre-c0a3607d41dd24b9ea03425892a361261893d076.zip |
:ambulance: Update third-party lustre_websocket package to new api.
Diffstat (limited to 'compat/lustre_websocket/test/lustre_websocket_test.gleam')
-rw-r--r-- | compat/lustre_websocket/test/lustre_websocket_test.gleam | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/compat/lustre_websocket/test/lustre_websocket_test.gleam b/compat/lustre_websocket/test/lustre_websocket_test.gleam new file mode 100644 index 0000000..2ce0f90 --- /dev/null +++ b/compat/lustre_websocket/test/lustre_websocket_test.gleam @@ -0,0 +1,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 +} |